bun v1.1.0-beta.1 Release Notes

Release Date: 2022-02-22 // 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.

    ๐Ÿ’ฅ 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)