Enable WAL mode.

This commit is contained in:
Greyson Parrelli 2021-06-27 10:34:48 -04:00
parent fce362960f
commit ab5d3badc2

View file

@ -20,6 +20,7 @@ public class SqlCipherDatabaseHook implements SQLiteDatabaseHook {
db.rawExecSQL("PRAGMA cipher_memory_security = OFF;");
db.rawExecSQL("PRAGMA kdf_iter = '1';");
db.rawExecSQL("PRAGMA cipher_page_size = 4096;");
db.enableWriteAheadLogging();
db.setForeignKeyConstraintsEnabled(true);
}
}