Registry / database / jackc-pgx

jackc-pgx

JSON →
library3.6.2+incompatiblegogounverified

A PostgreSQL database driver and toolkit for Go.

go get github.com/jackc/pgx
INSTALL
IMPORT
SIG · JACKC-PGX
J
jackc-pgx
databasegov3.6.2+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pgx
github.com/jackc/pgx

Connect to a PostgreSQL database and print the connection PID.

package main import ( "context" "fmt" "github.com/jackc/pgx" ) func main() { conn, _ := pgx.Connect(context.Background(), "postgres://user:pass@localhost/db") defer conn.Close() fmt.Println(conn.PID()) }
Debug
Known issues
breakingVersion 3.x is outdated; consider upgrading to pgx v5 for new features and support.
fix
Update to github.com/jackc/pgx/v5
affects: >=3.0.0 <4.0.0
Upgrade
Version history
3.6.2+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
jackc-pgx — go get jackc-pgx · libregistry