Should Connection.transaction be used? #4028
Unanswered
inklesspen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I see that the Connection trait has a
transaction
method which accepts a function and executes it inside a transaction.However, this method is not implemented on the Pool types; instead, there are the
begin
family of methods which return a transaction object. (These methods are also implemented on Connection.)Is there a reason why both ways are implemented on Connection, but not on Pool?
Beta Was this translation helpful? Give feedback.
All reactions