All Versions
10
Latest Version
Avg Release Cycle
91 days
Latest Release
1901 days ago
Changelog History
Changelog History
-
v1.5.0 Changes
January 07, 2020- ๐ 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.
- ๐ Fixes #69: Added
-
v1.4.0 Changes
December 23, 2019- โ Added
DB.QueryLogFunc
andDB.ExecLogFunc
to support more flexible logging and profiling.
- โ Added
-
v1.3.0 Changes
December 14, 2019โ Added support for using context.Context with SelectQuery
-
v1.2.0 Changes
December 06, 2019โ Added
go mod
support. -
v1.1 Changes
June 15, 2018- โ Added support for querying with
context.Context
- โฌ๏ธ Bumped up Go version requirement to 1.8 and above
- โ Added support for querying with
-
v1.0.15 Changes
March 01, 2018- โช
tx.Rollback
andtx.Commit
can be called withinDB.Transactional
now without causingsql.ErrTxDone
error.
- โช
-
v1.0.14 Changes
February 04, 2018Query.All()
will now initialize the slice to be empty (not nil) if the query result is empty.
-
v1.0.13 Changes
February 02, 2018- ๐ Fixed a bug in
DB.Clone()
that contained the reference to the old DB instance.
- ๐ Fixed a bug in
-
v1.0.12 Changes
February 02, 2018- โ Added
DB.Clone()
- โ Added
DB.Wrap()
- โ Added support for reading unsigned PK into models
- โ Added
-
v1.0.11 Changes
October 11, 2017- ๐ Better DB log messages by supporting Valuer interface
- โ Added db.PerfFunc to support logging SQL statement execution times