Skip to content

Releases: xgfone/go-sqlx

v0.33.0

18 Jun 03:26
Compare
Choose a tag to compare
  • Added:
    • Add new convenient methods for Operation, such as UpdateById, DeleteById, GetById, etc.

v0.32.0

18 Jun 03:25
Compare
Choose a tag to compare
  • 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
Choose a tag to compare
  • 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
Choose a tag to compare
  • 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
Choose a tag to compare
  • And and Or operations support the no conditions.

v0.29.0

12 Dec 03:36
Compare
Choose a tag to compare
  • "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
Choose a tag to compare
  • Add the date and time ZERO.
  • Optimize the where condition building.

v0.27.2

06 Aug 14:12
Compare
Choose a tag to compare
  • 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
Choose a tag to compare
  • Fixed:
    • Fix the operation builder of the pagination Page.

v0.27.0

27 Jul 13:08
Compare
Choose a tag to compare
  • Refactor:

    • Remove the interfaces Setter and Condition.
    • Refactor the DML statement based on the common Op.
  • NOTE: SelectBuilder.Paginate requires that pageNum starts with 1 instead of 0.