diff options
author | Kornel <kornel@geekhood.net> | 2019-12-01 14:25:28 +0000 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2019-12-01 14:25:28 +0000 |
commit | d4d91a39bd09fc875a562c3086f33db1ac99176a (patch) | |
tree | fb902f2d64dfd49e644c212469a0854875e292a7 /crate_db | |
parent | 9ed95acd048cd37f9e578f08608308ae29dee158 (diff) |
Sqlite sucks
Diffstat (limited to 'crate_db')
-rw-r--r-- | crate_db/Cargo.toml | 2 | ||||
-rw-r--r-- | crate_db/src/lib_crate_db.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crate_db/Cargo.toml b/crate_db/Cargo.toml index fc837b0..6ba570d 100644 --- a/crate_db/Cargo.toml +++ b/crate_db/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "crate_db" -version = "0.4.5" +version = "0.4.6" authors = ["Kornel <kornel@geekhood.net>"] description = "Internal index of crates used by crates.rs" diff --git a/crate_db/src/lib_crate_db.rs b/crate_db/src/lib_crate_db.rs index 0c951be..426c643 100644 --- a/crate_db/src/lib_crate_db.rs +++ b/crate_db/src/lib_crate_db.rs @@ -95,7 +95,7 @@ impl CrateDb { let mut conn = self.exclusive_conn.lock(); let conn = conn.get_or_insert_with(|| self.connect().unwrap()); - let tx = conn.transaction()?; + let tx = conn.transaction_with_behavior(TransactionBehavior::Immediate)?; let res = cb(&tx).context(context)?; tx.commit().context(context)?; Ok(res) |