Skip to content

One Postgres Connection Per HTTP Request #6

@nelsonic

Description

@nelsonic

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions