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

Changelog History
Page 5

  • v0.2.12 Changes

    June 29, 2021
    • ๐Ÿ›  Fixed scanners for net.IP and net.IPNet.
  • v0.2.10 Changes

    June 29, 2021
    • ๐Ÿ›  Fixed pgdriver to format passed query args.
  • v0.2.9 Changes

    June 27, 2021
    • โž• Added support for prepared statements in pgdriver.
  • v0.2.7 Changes

    June 26, 2021
    • โž• Added UpdateQuery.Bulk helper to generate bulk-update queries.

    Before:

      models := []Model{
        {42, "hello"},
        {43, "world"},
      }
      return db.NewUpdate().
        With("_data", db.NewValues(&models)).
        Model(&models).
        Table("_data").
        Set("model.str = _data.str").
        Where("model.id = _data.id")
    

    Now:

      db.NewUpdate().
        Model(&models).
        Bulk()
    
  • v0.2.5 Changes

    June 25, 2021
    • ๐Ÿ”„ Changed time.Time to always append zero time as NULL.
    • โž• Added db.RunInTx helper.
  • v0.2.4 Changes

    June 21, 2021
    • โž• Added SSL support to pgdriver.
  • v0.2.3 Changes

    June 20, 2021
    • Replaced ForceDelete(ctx) with ForceDelete().Exec(ctx) for soft deletes.
  • v0.2.1 Changes

    June 17, 2021
    • Renamed DBI to IConn. IConn is a common interface for *sql.DB, *sql.Conn, and *sql.Tx.
    • โž• Added IDB. IDB is a common interface for *bun.DB, bun.Conn, and bun.Tx.
  • v0.2.0 Changes

    June 16, 2021
    • ๐Ÿ”„ Changed model hooks. See [model-hooks](example/model-hooks) example.
    • ๐Ÿ“‡ Renamed has-one to belongs-to. Renamed belongs-to to has-one. Previously Bun used incorrect names for these relations.