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

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.