mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 22:16:30 +03:00
enable sqlite's WAL-mode unconditionally
This commit is contained in:
committed by
holger krekel
parent
3b2192a046
commit
9702647044
@@ -400,7 +400,7 @@ fn open(
|
||||
}
|
||||
let mgr = r2d2_sqlite::SqliteConnectionManager::file(dbfile.as_ref())
|
||||
.with_flags(open_flags)
|
||||
.with_init(|c| c.execute_batch("PRAGMA secure_delete=on;"));
|
||||
.with_init(|c| c.execute_batch("PRAGMA journal_mode=WAL; PRAGMA secure_delete=on;"));
|
||||
let pool = r2d2::Pool::builder()
|
||||
.min_idle(Some(2))
|
||||
.max_size(10)
|
||||
|
||||
Reference in New Issue
Block a user