Open
Description
What do you want to change?
Present
Currently all nullable types are generated as sql.NullInt, sql.NullBool, etc.
sql.Null
Using the sql.Null[T]
generic type might be a relatively small, but very notable way to adress nullable SQL values.
Uniform Internals
This would likely also clean up the internals of SQLC for code- generation a bit, seeing as then values can simply be adressed with sql.Null.V
, as opposed to sql.NullInt64.Int64
, etc.
What database engines need to be changed?
PostgreSQL, MySQL, SQLite
What programming language backends need to be changed?
Go