Releases: xgfone/go-sqlx
Releases · xgfone/go-sqlx
v0.20.0
- Added:
- Add the support of the tag attribute
notpropagate
for the struct-type field.
- Changed:
- Change the sql model
Base
.
v0.19.0
- Added:
Column
supports to compare with other Column
.
SelectBuilder
supports to From
one or more Table
.
- Add the model
Base
.
- Fixed:
- New and assign a default
DB
to the global variable DefaultDB
.
v0.18.3
- Fixed:
Column.In()
uses values...
to pass the values.
v0.18.2
- Fixed:
- Use decimal to convert
int64
to string
when scaning sql row by using ScanRow
.
v0.18.1
- Added:
- Export the row scan function
ScanRow
, which is used by Row.Scan
and Rows.Scan
.
- Fixed:
Row.Scan
and Rows.Scan
supports more types of the sql value like the builtin function Scan
.
v0.18.0
- Added:
- The method
Scan
of Row
and Rows
supports that the source value is NULL
.
- Add the function
ConditionsContain
to check whether the condition has existed.
v0.17.0
- Added:
- Add some convenient functions, such as
ColumnsContain
and CheckErrNoRows
.
- Add some SQL statement builder methods for
Table
.
- Add a default global
DB
variable DefaultDB
.
- Changed:
- Rename the method
Column
of Table
to NewColumn
.
v0.16.0
- Added:
- Add the methods
Get()
and Set()
for Time
and Bool
to get or set the value.
- Add the field
Layout
for Time
to allow the user to set the layout for a certain Time
value.
v0.15.1
- Fixed:
- Update the dependency to support the sql type
BIT(1)
as sqlx.Bool
.
- Changed:
- Remove the deprecated
opentracing
.
v0.15.0
- Added:
- Add the interfaces
ColumnCondition
and ColumnSetter
to inspect the column name of Condition
and Setter
.