https://github.com/sqlc-dev/null
https://github.com/sqlc-dev/null
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sqlc-dev/null
- Owner: sqlc-dev
- Created: 2022-03-16T17:06:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-29T23:57:40.000Z (over 2 years ago)
- Last Synced: 2024-12-27T12:27:00.674Z (about 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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?