Skip to content

Releases: didi/gendry

v1.9.0

09 Jul 13:22
07898fa
Compare
Choose a tag to compare

What's Changed

  • If map key is prefixed with _custom_, its value must be a builder.Comparable, which people can implement their own type to insert custom sql. by @jiangwei2514 in #151
  • Add some helper functions for JSON type. by @jiangwei2514 in #151

New Contributors

Full Changelog: v1.8.2...v1.9.0

v1.8.2

06 Nov 07:02
47b22f0
Compare
Choose a tag to compare

What's Changed

  • fix bug: manager settings set blank value option missing by @twz915 in #145
  • builder where & update support Raw SQL by @twz915 in #147
  • feat: build delete support limit by @twz915 in #148

Full Changelog: v1.8.1...v1.8.2

v1.8.1

10 Aug 01:21
b1ded9c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.8.0...v1.8.1

v1.8.0

21 Sep 08:37
becd38a
Compare
Choose a tag to compare

New Features

v.1.7.0

10 Mar 14:47
Compare
Choose a tag to compare

Add

  • when value is a slice, in keyword is omitable
map[string]interface{}{
  "foo in": []int{1,2,3},
}

// equals to
map[string]interface{}{
  "foo": []int{1,2,3},
}

Fix

  • if an object implements sql.Scanner, it'll take over the Scan job

v1.6.0

12 Dec 15:21
Compare
Choose a tag to compare
  • support _limit in BuildUpdate
  • optimize unnecessary map copy, which makes gendry run much faster

v1.5.0

22 Aug 10:29
4fb5126
Compare
Choose a tag to compare
  • support build insert on duplicate
  • update doc
  • support _lockMode
  • Fix bug of wrongly trimed quota field

v1.4.0

07 Jul 09:14
13a5c19
Compare
Choose a tag to compare
enhance #74: builder relax the syntax restriction of orderby operator…

… (#87)

* enhance #74: builder relax the syntax restriction of orderby operator

* enhance #74:add errOrderByValueType

* enhance #85:builder supports uppercase operators (#86)

* enhance #74: builder relax the syntax restriction of orderby operator

* enhance #74:add errOrderByValueType

add go mod

14 Jan 10:10
Compare
Choose a tag to compare

bump version to 1.3.2

v1.3.1

05 Aug 07:11
Compare
Choose a tag to compare

Fix bug of _orderby&_groupby.

in mysql manual:

Parameter markers can be used only where data values should appear, not for SQL keywords, identifiers, and so forth.

see also: issue mysql manual