Releases: mackee/go-sqlla
Releases · mackee/go-sqlla
v2.14.0: Merge pull request #45 from mackee/feature/supports-sql-null-t
v2.13.0: Merge pull request #43 from tamiflu/fix/enclose-table-name
fix: enclose table names in backquote
Add behavior for new style annotation: naming by struct/field names
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
add: support new annotation for go1.19
v2.11.0: Merge pull request #24 from mackee/feature/join-clause-and-additional…
…-where Building complex queries
v2.10.0: Merge pull request #23 from mackee/feature/select-is-not-null
add feature: "<column> IS NOT NULL" at SELECT WHERE
v2.9.0
v2.8.0: Merge pull request #21 from mackee/feature/insert-exec-context-withou…
…t-select add ExecContextWithoutSelect