Skip to content
This repository

PostgreSQL driver for the Go SQL database package

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time


pgsqldriver is a PostgreSQL driver for the Go SQL database package.


go get

By default the package is configured to build on Linux.


import "database/sql"
import _ ""

Note that by design pgsqldriver is not intended to be used directly. You do need to import it for the side-effect of registering itself with the sql package (using the name "postgres") but thereafter all interaction is via the sql package API. See the included test file pgsqldriver_test.go for example usage.


pgsqldriver is based on my pgsql.go package.

John Barham @john_e_barham Melbourne, Australia

Something went wrong with that request. Please try again.