Note: This module should not be used in new code. The generic type database/sql.Null
is available in the standard library since Go 1.22.
The sqlt package provides types that implement Go's database/sql.Scanner
and database/sql/driver.Valuer
interfaces:
github.com/soroushj/sqlt.NullRawMessage
- Nullableencoding/json.RawMessage
github.com/soroushj/sqlt.NullUUID
- Nullablegithub.com/google/uuid.UUID
(Note: This type should not be used in new code.github.com/google/uuid.NullUUID
is available since v1.3.0.)