Registry / database / jackc-pgerrcode

jackc-pgerrcode

JSON →
library0.0.0-20250907135507-afb5586c32a6gogounverified

Package pgerrcode contains constants for PostgreSQL error codes.

go get github.com/jackc/pgerrcode
INSTALL
IMPORT
SIG · JACKC-PGERRCODE
J
jackc-pgerrcode
databasegov0.0.0-20250907135507-afb5586c32a6
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.

pgerrcode
github.com/jackc/pgerrcode

Print the PostgreSQL error code for unique violation.

package main import ( "fmt" "github.com/jackc/pgerrcode" ) func main() { fmt.Println(pgerrcode.UniqueViolation) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20250907135507-afb5586c32a6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
jackc-pgerrcode — go get jackc-pgerrcode · libregistry