Changed pragma's

This commit is contained in:
M66B 2021-02-24 16:48:55 +01:00
parent 1a93794892
commit 1acb546cb1
1 changed files with 2 additions and 2 deletions

View File

@ -283,10 +283,10 @@ public abstract class DB extends RoomDatabase {
// https://www.sqlite.org/pragma.html
for (String pragma : new String[]{
"journal_mode", "journal_size_limit",
"synchronous", "journal_mode",
"wal_checkpoint", "wal_autocheckpoint",
"page_count", "page_size",
"default_cache_size", "cache_size"})
"cache_size"})
try (Cursor cursor = db.query("PRAGMA " + pragma + ";")) {
Log.i("Get PRAGMA " + pragma + "=" + (cursor.moveToNext() ? cursor.getString(0) : "?"));
}