set synchronous to NORMAL for all connections

feat/vaults
Tomáš Mládek 2021-12-05 19:06:04 +01:00
parent 98720118d3
commit cec3c4891e
1 changed files with 4 additions and 0 deletions

View File

@ -219,6 +219,10 @@ impl ConnectionOptions {
trace!("Setting busy_timeout to {:?}", duration);
conn.execute(&format!("PRAGMA busy_timeout = {};", duration.as_millis()))?;
}
trace!("Setting \"synchronous\" to NORMAL");
conn.execute("PRAGMA synchronous = NORMAL;")?;
Ok(())
}
}