An open API service indexing awesome lists of open source software.

https://github.com/sqlc-dev/null


https://github.com/sqlc-dev/null

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

## Tested

Starting with [drivers](https://zchee.github.io/golang-wiki/SQLDrivers/) that
pass [go-sql-test](https://github.com/bradfitz/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/

## Design doc

pgx

https://github.com/jackc/pgx/issues/1169#issuecomment-1155897986

```go
type Status byte

const (
Undefined Status = iota
Null
Present
)

type ACLItem struct {
String string
Status Status
}
```

stdlib

```go
type NullString struct {
String string
Valid bool // Valid is true if String is not NULL
}
```

* Have another null type for pgtype?