Enable WAL mode.
This commit is contained in:
parent
fce362960f
commit
ab5d3badc2
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ public class SqlCipherDatabaseHook implements SQLiteDatabaseHook {
|
||||||
db.rawExecSQL("PRAGMA cipher_memory_security = OFF;");
|
db.rawExecSQL("PRAGMA cipher_memory_security = OFF;");
|
||||||
db.rawExecSQL("PRAGMA kdf_iter = '1';");
|
db.rawExecSQL("PRAGMA kdf_iter = '1';");
|
||||||
db.rawExecSQL("PRAGMA cipher_page_size = 4096;");
|
db.rawExecSQL("PRAGMA cipher_page_size = 4096;");
|
||||||
|
db.enableWriteAheadLogging();
|
||||||
db.setForeignKeyConstraintsEnabled(true);
|
db.setForeignKeyConstraintsEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue