Uh oh!
There was an error while loading. Please reload this page.
gh-83638: Add sqlite3.Connection.autocommit for PEP 249 compliant behaviour - #93823
Conversation
7a613d3 to
8b6b866Compare@zzzeek, @maggyero, I'd appreciate your review on this, if only by building and testing it, and/or taking a look at the added tests. |
erlend-aasland
commented
Jun 15, 2022
@AlexWaygood would you mind taking a look at the doc changes? |
For external reviewers, here's some help on how to get started reviewing this PR:
|
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland
commented
Jun 15, 2022
cc. @bitdancer |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland
commented
Jun 15, 2022
Thanks, Alex! 🚀 |
Uh oh!
There was an error while loading. Please reload this page.
Thanks, I definitely welcome more eyes on this. Heads-up: you should take a look at the latest emails on the db-sig mailing list, so you have an up to date understanding of how the upcoming PEP 249 autocommit attribute will look. EDIT: I mixed up the dates; since alpha 2 is scheduled for Monday, I'm going to aim for that with this PR. If you don't have time to review this now, @maggyero, feel free to do a post-merge review. If we need to change the implementation, we can do so all the way until the feature freeze in May (IIRC). |
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
geryogam
commented
Nov 11, 2022
Thanks for the information and sorry for the delay, restoring the whole commit mode context took me longer than I expected. I actually did a complete rewriting of a post of mine on Stack Overflow on this topic to have a clear mental model.
Yes, I did. |
erlend-aasland
commented
Nov 11, 2022
No problem. I'll merge this tomorrow evening (CET) so I'm sure we get this into the next alpha. If you manage to do a review by then; good. If not, I'd be happy with a post-merge review, if you are fine with that. |
geryogam
left a comment
There was a problem hiding this comment.
This PR is great! Here is my review of the implementation, which is the most urgent. I’ll try to review the documentation this afternoon before the evening merge.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland
commented
Nov 12, 2022
To everyone involved here and on the issue(s), thanks for fruitful discussions and helpful reviews. I'll handle the eventual deprecation of ´isolation_mode´ in a follow-up issue/PR; I'll close gh-83638 with this PR. |
geryogam
left a comment
There was a problem hiding this comment.
I added an extra change request in the tests.
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland
commented
Nov 12, 2022
@maggyero, I'm landing this now. If you have further remarks, comment on the issue and we'll do a follow-up PR. Thanks for the review! |
geryogam
left a comment
There was a problem hiding this comment.
And here is the documentation review. =)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thank you very much for your work and patience @erlend-aasland and the reviewers, I think you did an amazing job! This will improve the user experience significantly. According to the SQLite engine documentation, SQLite is the most widely deployed database engine and might even be the single most widely deployed software component of any type, so the SQLite3 driver for Python has to be of top quality. I am fully convinced by the design (thanks @malemburg), implementation and tests. The documentation looks good to me, and we could address the remaining suggested changes in a follow-up documentation PR. |
Resolves#83638
TODO