Starting with drivers that pass go-sql-test.
- https://github.com/mattn/go-sqlite3
- https://github.com/jackc/pgx
- https://github.com/lib/pq
- https://github.com/ziutek/mymysql
- https://github.com/go-sql-driver/mysql/
pgx
type Status byte
const (
Undefined Status = iota
Null
Present
)
type ACLItem struct {
String string
Status Status
}
stdlib
type NullString struct {
String string
Valid bool // Valid is true if String is not NULL
}
- Have another null type for pgtype?