How can I commit()
this transaction?
#3405
Unanswered
frederikhors
asked this question in
Q&A
Replies: 1 comment
-
I think this is at the core the same issue as here #3406 (comment) => If you simply your code to not have two sources of truth for your PGConnection ( |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
In the below code I'm getting this error:
I need to commit if the
db
isNone
since I'm starting a new transaction with:&mut self.pool.begin().await?
.It's ok to use
db: Option<&mut sqlx::PgConnection>
as argument type or should I use something else, likeAcquire
trait?Code on Rust Playground
Beta Was this translation helpful? Give feedback.
All reactions