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 toSet("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
aspk
andautoincrement
. 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 tosoft_delete
fields.โ Removed
nopk
andallowzero
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)