Changed pragma's

pull/194/head
M66B 5 years ago
parent 1a93794892
commit 1acb546cb1

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

Loading…
Cancel
Save