All Versions
49
Latest Version
Avg Release Cycle
18 days
Latest Release
572 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)