Skip to content

Releases: xgfone/go-sqlx

v0.26.1

08 May 07:29
Compare
Choose a tag to compare
  • Fixed:
    • Remove the context.Context argument from the methods Exec, Query and QueryRow of DB.

v0.26.0

08 May 07:35
Compare
Choose a tag to compare
  • Added:
    • Add the support of op.Condition and op.Setter.
  • Changed:
    • Refactor the interceptor Interceptor.
    • Remove the interfaces Executor, ColumnSetter and ColumnCondition.
    • Remove the functions ColumnsContain, ConditionsContain.
    • Remove the methods SetExecutor, SetInterceptor and SetDialect from the builders TableBuilder, InsertBuilder, DeleteBuilder, UpdateBuilder and SelectBuilder.

v0.25.0

01 Apr 10:11
Compare
Choose a tag to compare
  • Changed:
    • Rename the module name from sqlx to go-sqlx.
    • Update the dependency from defaults to go-defaults.

v0.24.0

30 Mar 14:14
Compare
Choose a tag to compare
  • Changed:
    • Extract the global variables DatetimeLayout and Location to the external module github.com/xgfone/defaults.
    • Require Go 1.18+.

v0.23.1

22 Mar 14:49
Compare
Choose a tag to compare
  • Fixed:
    • Time supports the type nil.
  • Others:
    • ScanRow supports more types.
    • Add the NewXXX function for Row and Rows.

v0.23.0

21 Mar 13:36
Compare
Choose a tag to compare
  • Added:
    • Add the method SetFormat for Time to support to set the format layout.
    • Support to set DB: Table, TableBuilder, InsertBuilder, DeleteBuilder, UpdateBuilder, SelectBuilder.
  • Changed:
    • Remove the field SelectBuilder from Row and Rows, and use Columns instead.
    • Remove the methods QueryRaw, QueryRawContext, QueryRowRaw and QueryRowRawContext from SelectBuilder.
    • Remove the methods SetMore and SetMoreNamedArg from UpdateBuilder, and use Set and SetNamedArg instead.
    • Remove the methods Get and Set from Time.
    • Remove the type Bool.

v0.22.2

14 Dec 13:51
Compare
Choose a tag to compare
  • Fixed:
    • Use *sql.DB instead of nil as the executor.

v0.22.1

13 Dec 13:23
Compare
Choose a tag to compare
  • Fixed & Changed:
    • Row and Rows use the explicit field SelectBuilder instead of anonymous.

v0.22.0

08 Dec 02:05
Compare
Choose a tag to compare
  • Added:
    • Add the raw sql query for SelectBuilder.
  • Changed:
    • Rename the fields of the type Colunm and use the method Fullname instead of Name.
    • Rename the method Build of the interface Condition to BuildCondition.
    • Rename the method Build of the interface BuildSetter to Setter.
  • Removed:
    • Remove the named argument, such as NamedArg, NamedArgs, etc.
    • Remove the interface Valuer.
  • Others:
    • Allow to set the same table name repeatedly.
    • Optimize the alias of the table and column.

v0.21.0

01 Aug 15:46
Compare
Choose a tag to compare
  • Added:
    • Add the function type Opener and the default global variable DefaultOpener to customize sql.Open.