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

Changelog History
Page 2

  • v1.0.25 Changes

    February 22, 2022

    🐛 Bug Fixes

    🗄 Deprecated

    🚀 In the comming v1.1.x release, Bun will stop automatically adding ,pk,autoincrement options on ⚠ ID int64/int32 fields. This version (v1.0.23) only prints a warning when it encounters such fields, but the code will continue working as before.

    ⚠ To fix warnings, add missing options:

    type Model struct {
    -    ID int64
    +    ID int64 `bun:",pk,autoincrement"`
    }
    

    ⚠ To silence warnings:

    bun.SetWarnLogger(log.New(ioutil.Discard, "", log.LstdFlags))
    

    ⚠ Bun will also print a warning on soft delete ⚠ fields without a ,nullzero option. You can fix the warning by adding missing ,nullzero or ,allowzero options.

    🚚 In v1.1.x, such options as ,nopk and ,allowzero will not be necessary and will be removed.

    🐛 Bug Fixes

    • 🛠 fix missing autoincrement warning (3bc9c72)

    • append slice values (4a65129)

    • don't automatically set pk, nullzero, and autoincrement options (519a0df)

    🔋 Features

    • ➕ add CreateTableQuery.DetectForeignKeys (a958fcb)
  • v1.0.22 Changes

    January 28, 2022

    🐛 Bug Fixes

    • 👌 improve scan error message (54048b2)
    • properly discover json.Marshaler on ptr field (3b321b0)

    💥 Breaking (MySQL, MariaDB)

    • insert: get last insert id only with pk support auto increment (79e7c79). Make sure your MySQL models have bun:",pk,autoincrement" options if you are using autoincrements.

    🔋 Features

    • refuse to start when version check does not pass (ff8d767)
    • 👌 support Column in ValuesQuery (0707679)
  • v1.0.21 Changes

    January 06, 2022

    🐛 Bug Fixes

    • append where to index create (1de6cea)
    • check if slice is nil when calling BeforeAppendModel (938d9da)
    • dbfixture: directly set matching types via reflect (780504c)
    • properly handle driver.Valuer and type:json (a17454a)
    • 👌 support scanning string into uint64 (73cc117)
    • unique module name for opentelemetry example (f2054fe)

    🔋 Features

    • ➕ add anonymous fields with type name (508375b)
    • ➕ add baseQuery.GetConn() (81a9bee)
    • create new queries from baseQuery (ae1dd61)
    • 👌 support INSERT ... RETURNING for MariaDB >= 10.5.0 (b6531c0)
  • v1.0.20 Changes

    December 19, 2021

    🐛 Bug Fixes

    • ➕ add Event.QueryTemplate and change Event.Query to be always formatted (52b1ccd)
    • 🔄 change GetTableName to return formatted table name in case ModelTableExpr (95144dd)
    • 🔄 change ScanAndCount to work with transactions (5b3f2c0)
    • dbfixture: directly call funcs bypassing template eval (a61974b)
    • 0️⃣ don't append CASCADE by default in drop table/column queries (26457ea)
    • migrate: mark migrations as applied on error so the migration can be rolled back (8ce33fb)
    • 🛠 respect nullzero when appending struct fields. Fixes #339 (ffd02f3)
    • reuse tx for relation join (#366) (60bdb1a)

    🔋 Features

    • ➕ add Dialect() to Transaction and IDB interface (693f1e1)
    • ➕ add model embedding via embed:prefix_ (9a2cedc)
    • 🔄 change the default logoutput to stderr (4bf5773), closes #349
  • v1.0.19 Changes

    November 30, 2021

    🔋 Features

    • ➕ add support for column:name to specify column name (e37b460)
  • v1.0.18 Changes

    November 24, 2021

    🐛 Bug Fixes

    • ⚡️ use correct operation for UpdateQuery (687a004)

    🔋 Features

    • ➕ add pgdriver.Notify (7ee443d)
    • CreateTableQuery.PartitionBy and CreateTableQuery.TableSpace (cd3ab4d)
    • pgdriver: add CopyFrom and CopyTo (0b97703)
    • 👌 support InsertQuery.Ignore on PostgreSQL (1aa9d14)
  • v1.0.17 Changes

    November 11, 2021

    🐛 Bug Fixes

    • ⏪ don't call rollback when tx is already done (8246c2a)
    • mysql: escape backslash char in strings (fb32029)
  • v1.0.16 Changes

    November 07, 2021

    🐛 Bug Fixes

    • call query hook when tx is started, committed, or rolled back (30e85b5)
    • pgdialect: auto-enable array support if the sql type is an array (62c1012)

    🔋 Features

    • support multiple tag options join:left_col1=right_col1,join:left_col2=right_col2 (78cd5aa)
    • 🏷 tag: log with bad tag name (4e82d75)
  • v1.0.15 Changes

    October 29, 2021

    🐛 Bug Fixes

    • 🛠 fixed bug creating table when model has no columns (042c50b)
    • init table with dialect once (9a1ce1e)

    🔋 Features

    • accept columns in WherePK (b3e7035)
    • 👌 support ADD COLUMN IF NOT EXISTS (ca7357c)
  • v1.0.14 Changes

    October 24, 2021

    🐛 Bug Fixes

    • correct binary serialization for mysql (#259) (e899f50)
    • correctly escape single quotes in pg arrays (3010847)
    • 👉 use BLOB sql type to encode []byte in MySQL and SQLite (725ec88)

    🔋 Features

    • warn when there are args but no placeholders (06dde21)