Enable WAL mode.

fork-5.53.8
Greyson Parrelli 2021-06-27 10:34:48 -04:00
rodzic fce362960f
commit ab5d3badc2
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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);
}
}