-
Notifications
You must be signed in to change notification settings - Fork 32
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
Can't run transaction #158
Comments
@bubnenkoff: you don't need to call |
@isoos Do you mean I need to add some callback (that currently not in code)? |
You already do have a callback: |
@isoos Thanks, but how to detect it was error in transaction?
it's not exception, so I can't handle it. How to from next method check if all ok, or there was an error?
|
use
|
And try-catch inside it? Like:
|
Depends on what you want. You should be able to get the exception propagated to the |
Big thanks! Could you look at next code and say if I understand all that you said right:
Or it should be:
? |
I need to insert in DB list of single INSERT statement as single transaction. Like:
But I am getting error:
Same result on:
What I am missing?
The text was updated successfully, but these errors were encountered: