baichongyang baca853c99 first init vor 3 Jahren
..
oid baca853c99 first init vor 3 Jahren
scram baca853c99 first init vor 3 Jahren
.gitignore baca853c99 first init vor 3 Jahren
.travis.sh baca853c99 first init vor 3 Jahren
.travis.yml baca853c99 first init vor 3 Jahren
LICENSE.md baca853c99 first init vor 3 Jahren
README.md baca853c99 first init vor 3 Jahren
TESTS.md baca853c99 first init vor 3 Jahren
array.go baca853c99 first init vor 3 Jahren
buf.go baca853c99 first init vor 3 Jahren
conn.go baca853c99 first init vor 3 Jahren
conn_go18.go baca853c99 first init vor 3 Jahren
connector.go baca853c99 first init vor 3 Jahren
copy.go baca853c99 first init vor 3 Jahren
doc.go baca853c99 first init vor 3 Jahren
encode.go baca853c99 first init vor 3 Jahren
error.go baca853c99 first init vor 3 Jahren
go.mod baca853c99 first init vor 3 Jahren
krb.go baca853c99 first init vor 3 Jahren
notice.go baca853c99 first init vor 3 Jahren
notify.go baca853c99 first init vor 3 Jahren
rows.go baca853c99 first init vor 3 Jahren
ssl.go baca853c99 first init vor 3 Jahren
ssl_permissions.go baca853c99 first init vor 3 Jahren
ssl_windows.go baca853c99 first init vor 3 Jahren
url.go baca853c99 first init vor 3 Jahren
user_posix.go baca853c99 first init vor 3 Jahren
user_windows.go baca853c99 first init vor 3 Jahren
uuid.go baca853c99 first init vor 3 Jahren

README.md

pq - A pure Go postgres driver for Go's database/sql package

GoDoc

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 for more details.

Status

This package is effectively in maintenance mode and is not actively developed. Small patches and features are only rarely reviewed and merged. We recommend using pgx which is actively maintained.