Download Latest Version v1.43.0 source code.zip (101.6 kB)
Email in envelope

Get an email when there's a new version of Go SQLBuilder

Home / v1.40.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-03-20 1.1 kB
v1.40.0 source code.tar.gz 2026-03-20 74.5 kB
v1.40.0 source code.zip 2026-03-20 96.7 kB
Totals: 3 Items   172.4 kB 1

What's new

Struct field / db tag improvements

Support treating a db tag on a struct-typed field as a database alias and expanding its exported fields as aliased columns. This makes it possible to build JOIN projections like post.id, post.title, etc., from a nested struct field and keeps Addr/Scan behavior working by allocating nested pointers when scanning.

Note: This change preserves existing semantics for scalar-like structs (types implementing sql.Scanner/driver.Valuer/time.Time, etc) — they are not expanded.

See issue [#233] for more details.

Oracle SELECT behavior

Use OFFSET ... FETCH pattern for Oracle SELECT pagination.

Potential Oracle compatibility note: the change to use OFFSET ... FETCH for Oracle pagination may affect environments using older Oracle versions that do not support this syntax. Please verify compatibility with your Oracle version before upgrading.

Thanks and acknowledgements

Thanks to @zhangyongding for the Oracle pagination improvements.

Full Changelog: https://github.com/huandu/go-sqlbuilder/compare/v1.39.0...v1.40.0

Source: README.md, updated 2026-03-20