-
Notifications
You must be signed in to change notification settings - Fork 16
One Postgres Connection Per HTTP Request #6
Copy link
Copy link
Closed
Labels
Description
Doing a pg.connect(process.env.DATABASE_URL, function(err, client, done) { ... for each http request is a bit tedious ...
| pg.connect(process.env.DATABASE_URL, function(err, client, done) { |
Investigated potentially using https://www.npmjs.com/package/hapi-pg but its not got any tests and uses https://github.com/brianc/node-postgres-pure which is deprecated.
I raised an issue: erezlife/hapi-pg#7
Waiting for reply. Will either PR or re-implement (simplify).
Also looked at: https://www.npmjs.com/package/hapi-postgres ... but has no documentation or usage and
Reactions are currently unavailable