All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- fix(rows): don't close rows in rows.Scan (#49)
- !fix(orderby): use BuildOption instead of allowedColumns (#46)
- feat(string): added nullable String/Null for sql/json (#47)
- !renamed
Context
withClient
(#45)
- added
Connector
interface (#43) - added nullable
Time
with better json support (#44) - added
DTC
(#45)
- !renamed
BitBool
with shorter nameBool
(#44)
- implements json.Marshaler and json.Unmarshaler on
ID
(#41) - added
context
support intx.QueryRowBuilder
andtx.QueryBuilder
(#42)
- fix(sqlbuilder): fixed WithWhere/WithOrderBy for empty builder (#39)
- fixed timer performance issue (#38)
- fixed StmtMaxIdleTime missing issue (#38)
- used int64 instead of int in
Queryer.Count
(#37)
- added
NewWhere
andWithWhere
(#35) - added
NewOrderBy
andWithOrderBy
(#36) - added
LimitResult
andLimitOption
(#36)
- fixed close issue when it fails to build prepareStmt (#33)
- improved
OrderByBuilder
for api input (#34)
- added
OrderByBuilder
to prevent sql injection (#32, #33)
- added multi-dht support on
DB
(#31)
- stmt that is in using should not be close in background clean worker (#31)
- added DHT/HashRing in shardid (#30)
- added NewDHT/DHTAdd/DHTAdded/OnDHT on db (#30)
- added module name in migration (#29)
- added
Duration
to supportSacnner
andValuer
in sql driver (#27)
- added
Query[T]
feature andMapR[T]
Queryer for cross-databases query (#21)
- added detail logs on migration (#17)
- added rotated table migration support (#17)
- added
Rotate
method for rotate service (#18)
- fixed rollback issue on
Transaction
(#17)
- fixed missed input variable issue (#15)
- fixed sql.Scanner/driver.Valuer support in BitBool/shardid.ID (#16)
- added
BitBool
for mysql bit type (#11) - added
sharding
feature (#12) - added
On
onDB
to enable AutoSharding feature (#13) - added
On
onSQLBuilder
to enable AutoRotation feature (#13)
- fixed parameterized placeholder for postgresql (#12)
- sorted columns in
SetMap
for PrepareStmt performance (#14)
- added
BuilderOption
onSetMap
onInsertBuilder
andUpdateBuilder
(#1) - added
WithAllow
BuilderOption (#2) - added custom
Binder
support onBind
(#4) - added
Select
andDelete
onSQLBuilder
(#6) - added
PreparedStmt
support onQuery
andExec
(#7) - added
PreparedStmt
support onTx
(#8)
- fixed
sql.Scanner
support onBind
(#2)