Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One Postgres Connection Per HTTP Request #6

Closed
nelsonic opened this issue Mar 10, 2016 · 1 comment
Closed

One Postgres Connection Per HTTP Request #6

nelsonic opened this issue Mar 10, 2016 · 1 comment

Comments

@nelsonic
Copy link
Member

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. Dependency Status

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 Dependency Status

@nelsonic
Copy link
Member Author

This is an issue in the App we are building too... https://github.com/OxfordAbstracts/application/issues/162

nelsonic added a commit to dwyl/hapi-postgres-connection that referenced this issue Mar 11, 2016
nelsonic added a commit to dwyl/hapi-postgres-connection that referenced this issue Mar 13, 2016
@iteles iteles closed this as completed in 1eabde7 Mar 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant