Skip to content

Releases: lqs/sqlingo

v0.13.0

23 Jul 14:48
@lqs lqs
ef4e632
Compare
Choose a tag to compare

What's Changed

  • many new features by @VarusHsu
  • support "range over function"
  • fix priority of unary operators (a.And(b).Not())

Full Changelog: v0.12.1...v0.13.0

v0.12.0

03 Aug 14:39
@lqs lqs
99fe0a6
Compare
Choose a tag to compare
  • Added WhereIf method, allowing for conditional WHERE clauses.
  • Added support for several postgres field types (thanks to @VarusHsu).
  • Fixed an issue where generator would hang up when encountering errors.

v0.11.5

15 Jun 03:21
@lqs lqs
Compare
Choose a tag to compare
  • add Lower() and Upper() methods to string expressions
  • optimize logical expressions for static values

v0.11.4

27 Jan 05:49
@lqs lqs
Compare
Choose a tag to compare
  • The generation of table code has been parallelized to improve performance
  • Make a dummy SQL for inserting without values
  • Optimize quoteString to reduce unnecessary memory allocations.

v0.11.3

21 Aug 17:18
@lqs lqs
Compare
Choose a tag to compare

Added support for multiple joins (Join(...).On(...).Join(...).On(...)...)

v0.11.2

05 Aug 12:37
@lqs lqs
Compare
Choose a tag to compare
  • Added sqlingo.Use(driverName, sqlDB) to use this library for an existing *sql.DB handle. (Thanks @ghostiam)

v0.11.1

20 Apr 13:58
@lqs lqs
Compare
Choose a tag to compare

Add "-forcecases" option in generator to make old-fashioned golint happy.
Add OrderBy() and Limit() in delete

v0.10.13

08 Feb 11:41
@lqs lqs
Compare
Choose a tag to compare
  • Update() without Set() clause will now generate a dummy statements (DO 0) instead of reporting error
  • Added methods for string expression: IfEmpty & IsEmpty