pg-transaction
JSON →pg-transaction v1.0.4 is a small Node.js library that simplifies PostgreSQL transaction management on top of node-postgres (pg). It wraps pg.Client with a Transaction object supporting begin, commit, rollback, savepoints, and release. The library uses either callbacks or event emitters for error handling. Released in 2013 and last updated in 2014, it is considered stable but unmaintained. Key differentiator: provides a simple abstraction over raw BEGIN/COMMIT/ROLLBACK SQL, working exclusively with node-postgres.
Resources
packagepg-transaction ↗