brianc / node-postgres-docs

Documentation for node-postgres
https://node-postgres.com
MIT License
97 stars 94 forks source link

Creating a connection pool with dynamic DB param? #99

Closed ElixirMike closed 4 years ago

ElixirMike commented 4 years ago

Is it possible to create a connection pool to an instance, but per request, change the DB it uses for the query? I have a Saas Application with many DB's on a single instance. A given request needs to connect the user to their specific DB. Since connections are per server, not DB, this seems that it should be supported?