Skip to content

Commit 6996c2e

Browse files
committed
set SQLITE synchronous mode when writing
1 parent ca5b121 commit 6996c2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/storage/archive_index.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ pub(crate) fn create<R: io::Read + io::Seek, P: AsRef<Path>>(
7171
let mut archive = zip::ZipArchive::new(zipfile)?;
7272

7373
let conn = rusqlite::Connection::open(&destination)?;
74+
conn.execute("PRAGMA synchronous = FULL", ())?;
7475
conn.execute("BEGIN", ())?;
7576
conn.execute(
7677
"

0 commit comments

Comments
 (0)