Replies: 1 comment 2 replies
-
You can throw an exception inside of the transaction and catch it on the outside. This will roll back the transaction. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to manually cancel a transaction or batch insert? I am doing a download data function from server and batch insert the data. In the event of user choose to cancel download, I would like to cancel the insert (which is rollback everything).
Below are the code snippet:
Beta Was this translation helpful? Give feedback.
All reactions