PostgreSQL driver for the Go SQL database package
Go Shell
Latest commit f8287ee Feb 27, 2012 @jbarham Typo
Permalink
Failed to load latest commit information.
.gitignore Initial commit Oct 2, 2011
LICENSE Initial commit Oct 2, 2011
README.md Typo Feb 27, 2012
gen_pg_type.sh Initial commit Oct 2, 2011
pg_type.go Changes for Go 1 Feb 17, 2012
pgdriver.go weekly.2012-02-22 updates Feb 27, 2012
pgdriver_test.go weekly.2012-02-22 updates Feb 27, 2012

README.md

pgsqldriver

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

Installation

go get github.com/jbarham/gopgsqldriver

By default the package is configured to build on Linux.

Usage

import "database/sql"
import _ "github.com/jbarham/gopgsqldriver"

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.

About

pgsqldriver is based on my pgsql.go package.

John Barham jbarham@gmail.com @john_e_barham Melbourne, Australia