Go PostgreSQL driver for database/sql
Browse cluster: JavaScript Standard Style Linting →pq is a PostgreSQL driver for Go's database/sql package that enables Go applications to connect to and interact with PostgreSQL databases. Built in Go, it supports all maintained versions of PostgreSQL and implements standard database/sql interfaces for queries, prepared statements, and connection pooling. The driver offers PostgreSQL-specific features including SCRAM-SHA256 and Kerberos authentication, bulk data import via COPY statements, LISTEN/NOTIFY functionality for event-driven applications, and detailed error reporting that includes PostgreSQL error codes and context information. The project is maintained at github.com/lib/pq and includes comprehensive documentation and examples for common use cases.