Skip to content

lib/pq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d5affd5 · Sep 6, 2022
Sep 9, 2021
Sep 2, 2021
Sep 2, 2021
Oct 22, 2017
Jul 20, 2019
Sep 2, 2021
Jul 20, 2019
Nov 30, 2020
Jun 7, 2013
Sep 1, 2021
May 23, 2018
Sep 9, 2021
Nov 30, 2020
Aug 25, 2018
Jul 2, 2019
Jul 1, 2019
Aug 30, 2022
Nov 8, 2021
Apr 7, 2022
May 10, 2022
Sep 2, 2021
Sep 2, 2021
Apr 12, 2022
Aug 12, 2020
Jul 27, 2020
Apr 13, 2022
Apr 13, 2022
May 25, 2022
May 29, 2020
May 6, 2022
Sep 2, 2021
Apr 7, 2022
Jun 8, 2020
Sep 2, 2021
Sep 2, 2021
Sep 2, 2021
May 3, 2020
May 3, 2020
Sep 13, 2017
Aug 25, 2018
Aug 30, 2022
May 11, 2022
May 11, 2022
Aug 30, 2022
Sep 2, 2021
Feb 12, 2021
Feb 12, 2021
Sep 2, 2021
Oct 13, 2021
Jan 9, 2015
Dec 31, 2016
Aug 8, 2017

Repository files navigation

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 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 which is under active development.