Added pragma logging

pull/194/merge
M66B 3 years ago
parent af0afc955c
commit 0f5946e9fa

@ -419,7 +419,8 @@ public abstract class DB extends RoomDatabase {
"wal_checkpoint", "wal_autocheckpoint",
"page_count", "page_size", "max_page_count", "freelist_count",
"cache_size", "cache_spill",
"soft_heap_limit", "hard_heap_limit", "mmap_size"})
"soft_heap_limit", "hard_heap_limit", "mmap_size",
"foreign_keys"})
try (Cursor cursor = db.query("PRAGMA " + pragma + ";")) {
Log.i("Get PRAGMA " + pragma + "=" + (cursor.moveToNext() ? cursor.getString(0) : "?"));
}

Loading…
Cancel
Save