Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.19 KB

CHANGELOG.md

File metadata and controls

22 lines (18 loc) · 1.19 KB

Changelog

v5

  • All fields are nullable by default. ,null tag is replaced with ,notnull.
  • Result.Affected renamed to Result.RowsAffected.
  • Added Result.RowsReturned.
  • Create renamed to Insert, BeforeCreate to BeforeInsert, AfterCreate to AfterInsert.
  • Indexed placeholders support, e.g. db.Exec("SELECT ?0 + ?0", 1).
  • Named placeholders are evaluated when query is executed.
  • Added Update and Delete hooks.
  • Order reworked to quote column names. OrderExpr added to bypass Order quoting restrictions.
  • Group reworked to quote column names. GroupExpr added to bypass Group quoting restrictions.

v4

  • Options.Host and Options.Port merged into Options.Addr.
  • Added Options.MaxRetries. Now queries are not retried by default.
  • LoadInto renamed to Scan, ColumnLoader renamed to ColumnScanner, LoadColumn renamed to ScanColumn, NewRecord() interface{} changed to NewModel() ColumnScanner, AppendQuery(dst []byte) []byte changed to AppendValue(dst []byte, quote bool) ([]byte, error).
  • Structs, maps and slices are marshalled to JSON by default.
  • Added support for scanning slices, .e.g. scanning []int.
  • Added object relational mapping.