Releases: xgfone/go-sqlx
Releases · xgfone/go-sqlx
v0.33.0
18 Jun 03:26
Compare
Sorry, something went wrong.
No results found
Added:
Add new convenient methods for Operation, such as UpdateById, DeleteById, GetById, etc.
v0.32.0
18 Jun 03:25
Compare
Sorry, something went wrong.
No results found
Added:
Add method AddWithId for Operation.
Add methods QueryRowx, QueryRows, QueryRowxContext and QueryRowsContext for DB.
Both IN and NOT IN support the map value, such as map[string]bool, map[int]struct{}, etc.
v0.31.0
18 Jun 03:22
Compare
Sorry, something went wrong.
No results found
Changed:
Add the SELECT Sum function.
IN and NOT IN supports kinds of the slices, not only []any.
Changed:
Update the dependency github.com/xgfone/go-op from v0.7.0 to v0.8.0.
v0.30.0
07 Apr 01:50
Compare
Sorry, something went wrong.
No results found
Added:
Add Count functions for Select.
Enhanced:
Optimize the IN condition building.
Ignore the colulmns that has not bound value when binding a select query to a struct.
Changed:
Remove the deprecated useless function LogInterceptor.
Change the field ID of the Base model struct to Id.
v0.29.1
22 Jan 06:59
Compare
Sorry, something went wrong.
No results found
And and Or operations support the no conditions.
v0.29.0
12 Dec 03:36
Compare
Sorry, something went wrong.
No results found
"Added:"
DefaultConfigs: set ConnMaxIdleTime with 3m.
Changed:
MaxOpenConns: use input value instead of runtime.NumCPU() * 2 when less than 0.
Other:
Support the type op.KeyValue for the update op op.UpdateOpAdd, op.UpdateOpSub, op.UpdateOpMul, op.UpdateOpDiv.
v0.28.0
12 Dec 03:28
Compare
Sorry, something went wrong.
No results found
Add the date and time ZERO.
Optimize the where condition building.
v0.27.2
06 Aug 14:12
Compare
Sorry, something went wrong.
No results found
Fixed:
For the pagination, ignore it if the page number Page or the size of each page Size is equal to or less than 0.
v0.27.1
06 Aug 14:10
Compare
Sorry, something went wrong.
No results found
Fixed:
Fix the operation builder of the pagination Page.
v0.27.0
27 Jul 13:08
Compare
Sorry, something went wrong.
No results found