WAL journal mode and delete retry added

This commit is contained in:
Miroslav Prasil
2018-07-31 15:07:17 +01:00
parent 98bae4a0a1
commit 2872f40d13
2 changed files with 30 additions and 6 deletions

View File

@ -83,6 +83,11 @@ fn check_db() {
exit(1);
}
}
// Turn on WAL in SQLite
use diesel::RunQueryDsl;
let connection = db::get_connection().expect("Can't conect to DB");
diesel::sql_query("PRAGMA journal_mode=wal").execute(&connection).expect("Failed to turn on WAL");
}
fn check_rsa_keys() {