Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Add BeginTransaction(bool deferred) overload #53

Merged
merged 2 commits into from
Oct 7, 2022

Conversation

bgrainger
Copy link
Member

This provides a clear way to use SQLite's BEGIN (as opposed to BEGIN IMMEDIATE) functionality: https://www.sqlite.org/lang_transaction.html

It's modeled on the public API in Microsoft.Data.Sqlite: https://github.com/dotnet/efcore/blob/3b196063269f37d07324084e7ebb8dc641ad10d4/src/Microsoft.Data.Sqlite.Core/SqliteConnection.cs#L505-L506

This provides a clear way to use SQLite's "BEGIN" (as opposed to "BEGIN IMMEDIATE") functionality: https://www.sqlite.org/lang_transaction.html

It's modeled on the public API in Microsoft.Data.Sqlite: https://github.com/dotnet/efcore/blob/3b196063269f37d07324084e7ebb8dc641ad10d4/src/Microsoft.Data.Sqlite.Core/SqliteConnection.cs#L505-L506
@bgrainger bgrainger requested a review from ejball October 6, 2022 23:50
Copy link
Member

@ejball ejball left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any theoretical value to adding a Deferred property to SQLiteTransaction?

@bgrainger
Copy link
Member Author

I don't think so. (It would let us know how the transaction was started, but wouldn't reflect the current state of the transaction, i.e., whether SQLite had decided to promote it. It seems like it could just be misleading.)

@bgrainger bgrainger merged commit 14392f7 into Faithlife:master Oct 7, 2022
@bgrainger bgrainger deleted the begin-deferred branch October 7, 2022 17:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants