{"library":"pg-query","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"0.11.0","tags":["javascript","postgres","PostgreSQL"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-query","imports":["var query = require('pg-query');","const query = require('pg-query');","query.first('SELECT * FROM users WHERE id = $1', id, callback);"]},{"cmd":"yarn add pg-query","imports":[]},{"cmd":"pnpm add pg-query","imports":[]}],"homepage":"https://github.com/brianc/node-pg-query","github":"git://github.com/brianc/node-pg-query","docs":null,"changelog":null,"pypi":null,"npm":"pg-query","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}