sqlite_store: Mark write transactions with BEGIN IMMEDIATE

Hopefully addresses SQLITE_BUSY error, see #131
This commit is contained in:
Lennart
2025-11-01 15:09:42 +01:00
parent f34f7e420e
commit a05baea472
3 changed files with 55 additions and 10 deletions

View File

@@ -10,6 +10,9 @@ pub mod error;
pub mod principal_store;
pub mod subscription_store;
// Begin statement for write transactions
pub const BEGIN_IMMEDIATE: &str = "BEGIN IMMEDIATE";
#[cfg(any(test, feature = "test"))]
pub mod tests;