-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
Transaction 3 #222
Transaction 3 #222
Conversation
TODO: nested transaction
Throw error if none of the db rows are affected
@nappa85 have you tried nested transaction, i.e. multiple begin() and mutiple commit() on same connection? |
Was there a reason where |
I don't like "Boxdyning" things, adds an indirection that is often avoidable. |
Not extensively TBH, but should be trivial... |
No. Am trying to write some test cases on this. It'd be great if you can share your experience on its behavior, and see if it aligns with my understanding. |
Under a Transaction there always is a connection, so a nested transaction insists on the same connection of the top level transaction. This is why I think it's trivial, "START TRANSACTION" is only another query you run on the connection, so if, e.g., |
Just to remind myself of the nested transaction implementation of SQLx |
I succeeded in implementing and testing the nested transaction in Looks bright! |
How close are we to a stable release? |
I have gone through everything (code, API design & behavior) thoroughly. Everything seems clear now. I am targeting |
@billy1624 please add more test cases onto master |
SeaQL#222) * Support the use of chrono::DateTime<Utc> using the type alias DateTimeUtc Add a test to ensure the DateTimeUtc is parsed and converted to SQL equivalent of TIMESTAMP * Ensure DateTime formatting is consistent * Implement `From` for Utc Move FixedOffset to its own `From` implementation Implement test for Utc * Return a DateTime<Utc> instead of String * Return timestamp as a String * Add example documentation for DateTimeUtc
Continue #199 on #142
Tasks