Replies: 4 comments 1 reply
-
you don't need to run the 'begin' and the 'commit' command when using transaction objects of drogon orm. |
Beta Was this translation helpful? Give feedback.
-
I made a project to test and this is what I got:
Application Output:
|
Beta Was this translation helpful? Give feedback.
-
Figured it out. I did SQL queries incorrectly - an empty query was added at the end. I noticed this when I changed the transaction to just calling |
Beta Was this translation helpful? Give feedback.
-
Here is a complete example with getting an exception for each request. Is it possible to get an exception by the general method? After all, the transaction is stopped or rolled back when at least one error (exception) occurs, therefore it would be logical to somehow get the exception of the entire transaction and not every request. Is it possible?
|
Beta Was this translation helpful? Give feedback.
-
I tried to pass line by line to the transaction object, but nothing happens at all.
Here is an example of creation (I use SQLite3):
Here is the code to read the file:
But nothing happens and there are no errors. Am I using transactions incorrectly?
Beta Was this translation helpful? Give feedback.
All reactions