Skip to content

Releases: guregu/sqlx

add coalesce tag

22 Mar 02:53

Choose a tag to compare

db:"foo,coalesce" will marshal to the zero value if it encounters a NULL. db:"table.*,coalesce" works too.

specifying table names

12 Mar 21:44

Choose a tag to compare

allow specifying table names

foo.bar can be specified as db:"bar" or db:"foo.bar".
Embedded structs can be set to db:"foo.*", and their children
are treated as belonging to table foo.