Skip to content
/ pq Public
forked from lib/pq

Pure Go Postgres driver for database/sql

License

Notifications You must be signed in to change notification settings

momeni/pq

This branch is 1 commit ahead of, 1 commit behind lib/pq:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 8, 2024
9b02017 · Feb 8, 2024
Apr 28, 2023
Sep 2, 2021
Sep 2, 2021
Oct 22, 2017
Jul 20, 2019
Sep 2, 2021
Feb 8, 2024
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
Jul 7, 2023
Apr 26, 2023
Nov 8, 2021
May 3, 2023
May 3, 2023
Jul 7, 2023
May 10, 2022
Sep 2, 2021
Jul 7, 2023
Jan 24, 2023
Jan 24, 2023
Jul 27, 2020
Apr 13, 2022
Apr 13, 2022
May 25, 2022
May 29, 2020
May 6, 2022
Sep 2, 2021
Apr 14, 2023
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
Apr 28, 2023
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.

About

Pure Go Postgres driver for database/sql

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.7%
  • Makefile 0.3%