{"library":"pg-lazy","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"3.0.2","tags":["javascript","node-pg","pg","postgres","helpers","one","many","none","async"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-lazy","imports":["import pgLazy from 'pg-lazy'","const { Pool } = pgLazy(require('pg'), { connectionString })","import pgLazy from 'pg-lazy';\nconst { sql } = pgLazy(pg, config);"]},{"cmd":"yarn add pg-lazy","imports":[]},{"cmd":"pnpm add pg-lazy","imports":[]}],"homepage":"https://github.com/uniibu/pg-Lazy#readme","github":"https://github.com/uniibu/pg-Lazy","docs":null,"changelog":null,"pypi":null,"npm":"pg-lazy","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}