Skip to content

Releases: mackee/go-sqlla

v2.14.0: Merge pull request #45 from mackee/feature/supports-sql-null-t

11 Jul 01:36
99dda07
Compare
Choose a tag to compare

New Features

  • Support sql.Null[T] and generating helper methods for the nullable column. If you want to see this detail, you can read this pull request #45.

v2.13.0: Merge pull request #43 from tamiflu/fix/enclose-table-name

05 Apr 04:35
1260a14
Compare
Choose a tag to compare

Add behavior for new style annotation: naming by struct/field names

16 Jun 01:34
912f5f5
Compare
Choose a tag to compare

If you use new style annotation //sqlla:table ..., generating method and struct naming is by source struct/field names.

Example:

In old style annotation case,

// +table: foobar
type FooBar struct {
    Id uint64 `db:"id"`
    Createdat time.Time `db:"created_at"`
}

The sqlla generated methods are different to struct/field names.

NewFoobarSQL().Select().ID(...).CreatedAt(...)

In new style annotation case,

//sqlla:table foobar
type FooBar struct {
    Id uint64 `db:"id"`
    Createdat time.Time `db:"created_at"`
}

The sqlla generated methods are the same as struct/field names.

NewFooBarSQL().Select().Id(...).Createdat(...)

v2.11.1: Merge pull request #28 from mackee/feature/table-annotation-for-go1.19

18 Oct 02:15
eeef792
Compare
Choose a tag to compare

v2.11.0: Merge pull request #24 from mackee/feature/join-clause-and-additional…

26 May 08:15
fbc33b4
Compare
Choose a tag to compare

v2.10.0: Merge pull request #23 from mackee/feature/select-is-not-null

15 Mar 02:59
8d610ca
Compare
Choose a tag to compare
add feature: "<column> IS NOT NULL" at SELECT WHERE

v2.9.0

28 Dec 03:43
Compare
Choose a tag to compare
  • Support sql.NullTime
  • Bump up go.mod for go1.17

v2.8.0: Merge pull request #21 from mackee/feature/insert-exec-context-withou…

22 Nov 08:55
64b7a32
Compare
Choose a tag to compare

v2.7.0

22 Nov 04:08
Compare
Choose a tag to compare
  • support INSERT ~ ON DUPLICATE KEY UPDATE #19
  • support Bulk Insert #20

v2.5.0

16 Apr 08:48
Compare
Choose a tag to compare
missing WriteCode function