pg-lazy

JSON →
library 3.0.2 ·javascript
verified Jun 5, 2026

Simple functional helper layer on top of node-postgres (pg) providing convenient methods like `one()`, `many()`, `none()`, `withTransaction()`, and `canConnect()` on both Pool and Client instances. Version 3.0.2 requires Node >= 10 and peer dependency pg ^8.0.0. The library extends pg.Pool and pg.Client with ES6 classes (no longer mutating originals, stores originals as pg._Pool and pg._Client). Supports tagged template literal `sql` for safe parameterized queries. Offers both manual pool initialization and singleton mode. Release cadence appears low; no recent updates.