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
ContextwithClient(#45)
- added
Connectorinterface (#43) - added nullable
Timewith better json support (#44) - added
DTC(#45)
- !renamed
BitBoolwith shorter nameBool(#44)
- implements json.Marshaler and json.Unmarshaler on
ID(#41) - added
contextsupport intx.QueryRowBuilderandtx.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
NewWhereandWithWhere(#35) - added
NewOrderByandWithOrderBy(#36) - added
LimitResultandLimitOption(#36)
- fixed close issue when it fails to build prepareStmt (#33)
- improved
OrderByBuilderfor api input (#34)
- added
OrderByBuilderto 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
Durationto supportSacnnerandValuerin 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
Rotatemethod 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
BitBoolfor mysql bit type (#11) - added
shardingfeature (#12) - added
OnonDBto enable AutoSharding feature (#13) - added
OnonSQLBuilderto enable AutoRotation feature (#13)
- fixed parameterized placeholder for postgresql (#12)
- sorted columns in
SetMapfor PrepareStmt performance (#14)
- added
BuilderOptiononSetMaponInsertBuilderandUpdateBuilder(#1) - added
WithAllowBuilderOption (#2) - added custom
Bindersupport onBind(#4) - added
SelectandDeleteonSQLBuilder(#6) - added
PreparedStmtsupport onQueryandExec(#7) - added
PreparedStmtsupport onTx(#8)
- fixed
sql.Scannersupport onBind(#2)