Added options to modify the operation of the SQLite database (through PRAGMA statements)

- set cache size (in number of pages)
- set synchronous flag
- set journal mode
This commit is contained in:
chme
2014-06-08 08:25:58 +02:00
parent 17ffdc56ad
commit 46c0239a79
2 changed files with 196 additions and 0 deletions

View File

@@ -48,6 +48,9 @@ static cfg_opt_t sec_general[] =
CFG_STR("admin_password", NULL, CFGF_NONE),
CFG_STR("logfile", STATEDIR "/log/" PACKAGE ".log", CFGF_NONE),
CFG_STR("db_path", STATEDIR "/cache/" PACKAGE "/songs3.db", CFGF_NONE),
CFG_INT("db_pragma_cache_size", -1, CFGF_NONE),
CFG_STR("db_pragma_journal_mode", NULL, CFGF_NONE),
CFG_INT("db_pragma_synchronous", -1, CFGF_NONE),
CFG_INT_CB("loglevel", E_LOG, CFGF_NONE, &cb_loglevel),
CFG_BOOL("ipv6", cfg_false, CFGF_NONE),
CFG_END()