serverless-pg icon indicating copy to clipboard operation
serverless-pg copied to clipboard

[Request] Possibility to use pg.Pool instead.

Open rafaell-lycan opened this issue 1 year ago • 1 comments

Ciao @MatteoGioioso

I'd like to request a feature/enhancement to allow using pg.Pool instead, just to simplify its usage and avoid cleaning/ending.

It could be simply a property on the constructor that makes usage or new Pool(...) instead.

Thanks!

rafaell-lycan avatar Jan 06 '23 13:01 rafaell-lycan

Hello

Sorry for the late reply.

Yes, it would simplify the code I guess, however I am not sure we would have the same level of control over the connections. I think at some point I came to the conclusion that it was not possible to use it, but I might be mistaken; if you have a plan on how to implement it that would be great.

Thanks

MatteoGioioso avatar Feb 11 '23 11:02 MatteoGioioso