Using pg-promise with an existing pg client / connection #876
-
I am using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This library is built mainly around a connection pool, not individual/separate connections. The only thing this library has in terms of interconnectivity is property db.$pool, which exposes the underlying pool object. There is nothing else. It cannot wrap itself around an external In theory, it should be easy to implement, perhaps by extending method connect and adding option |
Beta Was this translation helpful? Give feedback.
This library is built mainly around a connection pool, not individual/separate connections.
The only thing this library has in terms of interconnectivity is property db.$pool, which exposes the underlying pool object. There is nothing else. It cannot wrap itself around an external
Client
interface, I'm afraid.In theory, it should be easy to implement, perhaps by extending method connect and adding option
client
, it would just need some work ;)