node-pg-db
node-pg-db copied to clipboard
Transactions are broken in Node 14
Reproduction
In Node.js v14:
Run make
Run make test
There are a number of test failures, which are likely caused by the removal of support for the deprecated Node.js domain api.
This package has not been updated in a considerable amount of time and has not been tested on recent node versions. I should update the README accordingly.
If you're looking for something similar to this with (magical) domain based transaction management, check out pg-query-exec: https://www.npmjs.com/package/pg-query-exec. It also has better configurability and a TypeScript typings for improved usability.
Slonik is another great pg wrapper: https://github.com/gajus/slonik