bun v1.1.0 Release Notes

Release Date: 2022-02-28 // about 2 years ago
  • ๐Ÿ”‹ 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)