dbh-pg

JSON →
library 3.0.0 ·javascript
verified Jun 5, 2026

Lightweight Database Handler for PostgreSQL built on top of node-postgres (pg) and bluebird promises. Provides a thin wrapper around pg's connection pool with promise-based methods for common database operations, transactions, and query shorthands. Current version 3.0.0. The library simplifies common tasks like transactions and connection lifecycle management using bluebird's Promise.using pattern. Compared to raw pg, it reduces boilerplate for queries and transactions but adds a dependency on bluebird. Suitable for projects already using bluebird or wanting a minimal promise-based interface over pg.