Skip to content

Releases: go-ozzo/ozzo-dbx

v1.5.0

07 Jan 18:49
Compare
Choose a tag to compare
  • Fixes #69: Added DB.TableMapper to support using common prefix/suffix with table names when performing model-based queries. (Thanks to @kPshi !)
  • Fixes #70: Fixed the rawSQL generated by Upsert for PostgreSQL DB. (Thanks to @vasilistefanenko !)
  • Added DB.WithContext() to support getting a DB instance with a context. This is useful for creating queries with context.

v1.4.0

23 Dec 20:14
Compare
Choose a tag to compare
  • Added DB.QueryLogFunc and DB.ExecLogFunc to support more flexible logging and profiling.

v1.3.0

14 Dec 14:39
Compare
Choose a tag to compare

Added support for using context.Context with SelectQuery

v1.2.0

06 Dec 15:26
Compare
Choose a tag to compare

Added go mod support.

v1.1

15 Jun 16:39
Compare
Choose a tag to compare
  • Added support for querying with context.Context
  • Bumped up Go version requirement to 1.8 and above

v1.0.15

01 Mar 02:57
Compare
Choose a tag to compare
  • tx.Rollback and tx.Commit can be called within DB.Transactional now without causing sql.ErrTxDone error.

v1.0.14

04 Feb 00:52
Compare
Choose a tag to compare
  • Query.All() will now initialize the slice to be empty (not nil) if the query result is empty.

v1.0.13

02 Feb 15:51
244ab54
Compare
Choose a tag to compare
  • Fixed a bug in DB.Clone() that contained the reference to the old DB instance.

v1.0.12

02 Feb 15:20
Compare
Choose a tag to compare
  • Added DB.Clone()
  • Added DB.Wrap()
  • Added support for reading unsigned PK into models

v1.0.11

11 Oct 01:58
Compare
Choose a tag to compare
  • Better DB log messages by supporting Valuer interface
  • Added db.PerfFunc to support logging SQL statement execution times