pg-query

JSON →
library 0.11.0 ·javascript maintenance
verified Jun 5, 2026

pg-query is a lightweight wrapper around node-postgres that reduces boilerplate for PostgreSQL queries. Version 0.11.0 is the latest stable release, though the package is in maintenance mode with no active development. Key differentiators: 3-argument callback (err, rows, result), promise support via .spread(), query.first helper for single-row results, and domain-aware error handling. It uses a random pooled client per query, so it is not suitable for transactions. The package has no external dependencies beyond node-postgres (pg) and is designed for simple query operations.