All Versions
49
Latest Version
Avg Release Cycle
18 days
Latest Release
936 days ago

Changelog History
Page 1

  • v1.1.9 Changes

    November 23, 2022

    ๐Ÿ› Bug Fixes

    • โž• addng dialect override for append-bool (#695) (338f2f0)
    • don't call hooks twice for whereExists (9057857)
    • ๐Ÿ”’ don't lock migrations when running Migrate and Rollback (69a7354)
    • query: make WhereDeleted compatible with ForceDelete (299c3fd), closes #673
    • relation join soft delete SQL generate (a98f4e9)

    ๐Ÿ”‹ Features

    • โž• add migrate.Exec (d368bbe)
    • โšก๏ธ update: "skipupdate" while bulk (1a32b2f)
    • zerolog: added zerolog hook (9d2267d)
  • v1.1.8 Changes

    August 29, 2022

    ๐Ÿ› Bug Fixes

    • bunotel: handle option attributes (#656) (9f1e0bd)
    • driver.Valuer returns itself causes stackoverflow (c9f51d3), closes #657
    • pgdriver: return FATAL and PANIC errors immediately (4595e38)
    • ๐Ÿ›  quote m2m table name fixes #649 (61a634e)
    • ๐Ÿ‘Œ support multi-level embed column (177ec4c), closes #643

    ๐Ÿ”‹ Features

    • ๐Ÿ‘ conditions not supporting composite in (e5d78d4)
    • idb: support raw query (be4e688)
    • migrate: add MissingMigrations (42567d0)
    • pgdriver: implement database/sql/driver.SessionResetter (bda298a)
    • pgdriver: provide access to the underlying net.Conn (d07ea0e)
  • v1.1.7 Changes

    July 29, 2022

    ๐Ÿ› Bug Fixes

    • ๐Ÿ”„ change ScanAndCount without a limit to select all rows (de5c570)
  • v1.1.6 Changes

    July 10, 2022

    ๐Ÿ› Bug Fixes

    • bunotel add set attributes to query metrics (dae82cc)
    • db.ScanRows: ensure rows.Close is called (9ffbc6a)
    • ๐Ÿ”€ merge apply (3081849)
    • migrate: close conn/tx on error (7b168ea)
    • migrate: type Migration should be used as a value rather than a pointer (fb43935)
    • migrate: type MigrationGroup should be used as a value rather than a pointer (649da1b)
    • mssql cursor pagination (#589) (b34ec97)

    ๐Ÿ”‹ Features

    • โšก๏ธ "skipupdate" model field tag (#565) (9288294)
    • โž• add pgdriver write error to log (5ddda3d)
    • โž• add query string representation (520da7e)
    • โž• add relation condition with tag (fe5bbf6)
    • โž• add support for ON UPDATE and ON DELETE rules on belongs-to relationships from struct tags (#533) (a327b2a)
    • โž• add tx methods to IDB (#587) (feab313)
    • โž• added raw query calls (#596) (127644d)
    • bunotel: add option to enable formatting of queries (#547) (b9c768c)
    • config.go: add sslrootcert support to DSN parameters (3bd5d69)
    • create an extra module for newrelic (#599) (6c676ce)
    • migrate: add WithMarkAppliedOnSuccess (31b2cc4)
    • pgdialect: add hstore support (66b44f7)
    • pgdialect: add identity support (646251e)
    • pgdriver: expose pgdriver.ParseTime (405a7d7)
  • v1.1.5 Changes

    May 12, 2022

    ๐Ÿ› Bug Fixes

    • driver/sqliteshim: make it work with recent version of modernc sqlite (2360584)
  • v1.1.4 Changes

    April 20, 2022

    ๐Ÿ› Bug Fixes

    • 0๏ธโƒฃ automatically set nullzero when there is default:value option (72c44ae)
    • ๐Ÿ›  fix ForceDelete on live/undeleted rows (1a33250)
    • ๐Ÿ›  fix OmitZero and value overriding (087ea07)
    • ๐Ÿ“‡ rename Query to QueryBuilder (98d111b)

    ๐Ÿ”‹ Features

    • โž• add ApplyQueryBuilder (582eca0)
    • config.go: add connect_timeout to DSN parsable params (998b04d), closes #505
  • v1.1.3 Changes

    March 29, 2022

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  fix panic message when has-many encounter an error (cfd2747)
    • migrate: change rollback to match migrate behavior (df5af9c)

    ๐Ÿ”‹ Features

    • โž• added QueryBuilder interface for SelectQuery, UpdateQuery, DeleteQuery (#499) (59fef48)
  • v1.1.2 Changes

    March 22, 2022

    ๐Ÿ› Bug Fixes

    • correctly handle bun.In([][]byte{...}) (800616e)

    ๐Ÿ”‹ Features

    • accept extend option to allow extending existing models (48b80e4)
  • v1.1.0 Changes

    February 28, 2022

    ๐Ÿ”‹ Features

    • โž• Added MSSQL support as a 4th fully supported DBMS.
    • โž• Added SetColumn("col_name", "upper(?)", "hello") in addition to Set("col_name = upper(?)", "hello") which works for all 4 supported DBMS.

    • ๐Ÿ‘Œ improve nil ptr values handling (b398e6b)

    ๐Ÿ’ฅ Breaking changes

    • Bun no longer automatically marks some fields like ID int64 as pk and autoincrement. You need to manually add those options:
    type Model struct {
    -    ID int64
    +    ID int64 `bun:",pk,autoincrement"`
    }
    

    โš  Bun v1.0.25 prints warnings for models with missing options so you are โฌ†๏ธ recommended to upgrade to v1.0.24 before upgrading to v1.1.x.

    • Also, Bun no longer adds nullzero option to soft_delete fields.

    • โœ‚ Removed nopk and allowzero options.

    ๐Ÿ› Bug Fixes

    • append slice values (4a65129)
    • check for nils when appeding driver.Value (7bb1640)
    • cleanup soft deletes for mssql (e72e2c5)
    • dbfixture: apply cascade option. Fixes #447 (d32d988)
    • create table WithForeignKey() and has-many relation (3cf5649)
    • do not emit m2m relations in WithForeignKeys() (56c8c5e)
    • accept dest in select queries (33b5b6f)
  • v1.1.0-beta.1 Changes

    February 22, 2022

    ๐Ÿ”‹ Features

    • โž• Added MSSQL support as a 4th fully supported DBMS.
    • โž• Added SetColumn("col_name", "upper(?)", "hello") in addition to Set("col_name = upper(?)", "hello") which works for all 4 supported DBMS.

    ๐Ÿ’ฅ Breaking changes

    • Bun no longer automatically marks some fields like ID int64 as pk and autoincrement. You need to manually add those options:
    type Model struct {
    -    ID int64
    +    ID int64 `bun:",pk,autoincrement"`
    }
    

    โš  Bun v1.0.25 prints warnings for models with missing options so you are โฌ†๏ธ recommended to upgrade to v1.0.24 before upgrading to v1.1.x.

    • Also, Bun no longer adds nullzero option to soft_delete fields.

    • โœ‚ Removed nopk and allowzero options.

    ๐Ÿ› Bug Fixes

    • append slice values (4a65129)
    • check for nils when appeding driver.Value (7bb1640)
    • cleanup soft deletes for mssql (e72e2c5)
    • dbfixture: apply cascade option. Fixes #447 (d32d988)