https://github.com/sqlc-dev/pqtype
Go types for PostgreSQL types when using lib/pq
https://github.com/sqlc-dev/pqtype
golang postgresql
Last synced: 9 months ago
JSON representation
Go types for PostgreSQL types when using lib/pq
- Host: GitHub
- URL: https://github.com/sqlc-dev/pqtype
- Owner: sqlc-dev
- License: mit
- Created: 2021-08-18T03:14:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-26T08:35:18.000Z (about 2 years ago)
- Last Synced: 2024-06-19T22:16:19.229Z (over 1 year ago)
- Topics: golang, postgresql
- Language: Go
- Homepage: https://pkg.go.dev/github.com/sqlc-dev/pqtype
- Size: 32.2 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pkg.go.dev/github.com/sqlc-dev/pqtype)
[](https://github.com/sqlc-dev/pqtype/actions/workflows/ci.yml)
# pqtype
pqtype implements Go types for PostgreSQL types when using the
[lib/pq](https://github.com/lib/pq) driver.
## Compatibility
pqtype is tested against PostgreSQL 9.6 through 13 and Go 1.13 through 1.17.
While these types may work with other drivers, they are **only** tested against
the lib/pq driver.
## History
pqtype is a fork of [jackc/pgtype](https://github.com/jackc/pgtype) with all
the pgx-specific code removed. The `Status` field on types has been replaced
with a `Valid` boolean to mirror the standard library `sql.Null*` types.