-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Using Queryable for transactions? #77
Comments
Hi @moltar. I'm a bit lost: from the excerpts you've shown, |
I'd like to be able to pass |
@jawj I agree with the author here and from a short look at the code I do not see any reason this would not be possible. Would you accept a PR with this change? |
As of 5.0.3 it's now possible to pass a connected client instead of a pool to the |
Can
pg.Pool
beQueryable
by any chance?zapatos/src/db/transaction.ts
Line 65 in d889232
zapatos/src/db/core.ts
Line 140 in e87524b
There's the call to
release
method in thefinally
block, which is not available onpg.Client
, but maybe that can be worked around?zapatos/src/db/transaction.ts
Line 122 in d889232
The text was updated successfully, but these errors were encountered: