Microsoft.Data.Sqlite: Add deferred transactions#21212
Conversation
|
Hmm, test fails on SQLCipher with |
|
On my local build the test works fine for e_sqlcipher, so I'm not sure how to fix it. |
|
It looks like it passed several times on the CI as well. I'll investigate |
|
(Rebased and squashed on top of |
|
If it passes this time, I'm inclined to just merge this and deal with the test when/if it becomes flakey again. |
|
Hello @bricelam! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
|
😒 The flakey test failed on winsqlite3 this time. I'm going to experiment a bit in #22129 |
|
Would this not make more sense as the default behaviour? If it were it would then align more with the SQLite documentation.
If this changed in a future version it might make more sense if the paramater naming was also inversed so |
|
@p-m-j see my previous comments on the subject:
|
|
@bricelam i guess someone will be upset no matter which default you choose. How about a connection string flag to toggle the default behaviour? |
|
Hmm... File an issue so we can discuss it as a team. I'm personally against it since you'd have to be very aware of the implications for every line of SQL you write, and any time you introduce concurrency in your app. Having to set it manually every time reminds you to think about everything that might go wrong. In other words, I think the connection string keyword would harm more people than it helped. |
Adds
BeginTransaction(bool deferred)toSqliteConnection.Fixes #20786