Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lib/pq
Pure Go Postgres driver for database/sql
https://github.com/lib/pq
Last synced: 6 days ago
JSON representation
Pure Go Postgres driver for database/sql
- Host: GitHub
- URL: https://github.com/lib/pq
- Owner: lib
- License: mit
- Created: 2012-03-12T18:50:22.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-08-04T15:59:57.000Z (3 months ago)
- Last Synced: 2024-10-18T15:19:10.472Z (16 days ago)
- Language: Go
- Homepage: https://pkg.go.dev/github.com/lib/pq
- Size: 1.04 MB
- Stars: 9,072
- Watchers: 157
- Forks: 911
- Open Issues: 327
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-go - pq - Pure Go Postgres driver for database/sql. (Database Drivers / Relational Database Drivers)
- awesome-go-storage - pq - Pure Go Postgres driver for database/sql. (Database Drivers)
- awesome-ccamel - lib/pq - Pure Go Postgres driver for database/sql (Go)
- awesome-starts - lib/pq - Pure Go Postgres driver for database/sql (Go)
- go-awesome - pq - PostgreSQL driver (Open source library / Database)
- awesome-cobol - pq - Pure Cobol Postgres driver for database/sql. (Database Drivers / Middlewares)
- awesome-go - pq - Pure Go Postgres driver for database/sql - ★ 4345 (Database Drivers)
- awesome-go-extra - pq - 03-12T18:50:22Z|2022-08-20T17:36:41Z| (Generators / Relational Database Drivers)
- awesome-go-storage - pq - Pure Go Postgres driver for database/sql. (Database Drivers)
- starred-awesome - pq - Pure Go Postgres driver for database/sql (Go)
- awesome-go - pq - Pure Go Postgres driver for database/sql. Stars:`9.1K`. (Database Drivers / Relational Database Drivers)
- my-awesome - lib/pq - 08 star:9.1k fork:0.9k Pure Go Postgres driver for database/sql (Go)
README
# pq - A pure Go postgres driver for Go's database/sql package
[![GoDoc](https://godoc.org/github.com/lib/pq?status.svg)](https://pkg.go.dev/github.com/lib/pq?tab=doc)
## Install
go get github.com/lib/pq
## Features
* SSL
* Handles bad connections for `database/sql`
* Scan `time.Time` correctly (i.e. `timestamp[tz]`, `time[tz]`, `date`)
* Scan binary blobs correctly (i.e. `bytea`)
* Package for `hstore` support
* COPY FROM support
* pq.ParseURL for converting urls to connection strings for sql.Open.
* Many libpq compatible environment variables
* Unix socket support
* Notifications: `LISTEN`/`NOTIFY`
* pgpass support
* GSS (Kerberos) auth## Tests
`go test` is used for testing. See [TESTS.md](TESTS.md) for more details.
## Status
This package is currently in maintenance mode, which means:
1. It generally does not accept new features.
2. It does accept bug fixes and version compatability changes provided by the community.
3. Maintainers usually do not resolve reported issues.
4. Community members are encouraged to help each other with reported issues.For users that require new features or reliable resolution of reported bugs, we recommend using [pgx](https://github.com/jackc/pgx) which is under active development.