Skip to content

Commit

Permalink
set SQLITE synchronous mode when writing
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Mar 3, 2023
1 parent ca5b121 commit 6996c2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/storage/archive_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ pub(crate) fn create<R: io::Read + io::Seek, P: AsRef<Path>>(
let mut archive = zip::ZipArchive::new(zipfile)?;

let conn = rusqlite::Connection::open(&destination)?;
conn.execute("PRAGMA synchronous = FULL", ())?;
conn.execute("BEGIN", ())?;
conn.execute(
"
Expand Down

0 comments on commit 6996c2e

Please sign in to comment.