pg-extra

JSON →
library 3.0.0 ·javascript
verified Jun 5, 2026

pg-extra v3.0.0 provides helpful extensions and helpers for node-postgres (pg) without mutating the pg module. It adds a `pg.extra` namespace with extended Pool and Client classes that include convenient methods like `many`, `one`, `withTransaction`, `stream`, and `prepared` statement support. It also includes `sql` and `_raw` template literal tags to enforce parameterized queries and prevent SQL injection. Requires Node 8+ and pg 7.3+. Release cadence is low; stable, maintained project with no recent updates.