Refactoring

pull/194/merge
M66B 3 years ago
parent 3ee48016f5
commit 0971cdc322

@ -32,6 +32,8 @@ import org.json.JSONObject;
import java.io.File; import java.io.File;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -129,14 +131,14 @@ public abstract class DB extends RoomDatabase {
private static final String[] DB_TABLES = new String[]{ private static final String[] DB_TABLES = new String[]{
"identity", "account", "folder", "message", "attachment", "operation", "contact", "certificate", "answer", "rule", "search", "log"}; "identity", "account", "folder", "message", "attachment", "operation", "contact", "certificate", "answer", "rule", "search", "log"};
private static final String[] DB_PRAGMAS = new String[]{ private static final List<String> DB_PRAGMAS = Collections.unmodifiableList(Arrays.asList(
"synchronous", "journal_mode", "synchronous", "journal_mode",
"wal_checkpoint", "wal_autocheckpoint", "journal_size_limit", "wal_checkpoint", "wal_autocheckpoint", "journal_size_limit",
"page_count", "page_size", "max_page_count", "freelist_count", "page_count", "page_size", "max_page_count", "freelist_count",
"cache_size", "cache_spill", "cache_size", "cache_spill",
"soft_heap_limit", "hard_heap_limit", "mmap_size", "soft_heap_limit", "hard_heap_limit", "mmap_size",
"foreign_keys" "foreign_keys"
}; ));
@Override @Override
public void init(@NonNull DatabaseConfiguration configuration) { public void init(@NonNull DatabaseConfiguration configuration) {

Loading…
Cancel
Save