refactor: consolidate database configs (#4522)

* consolidate db configs

* allow using custom file-name for the sqlite db

* remove the unused `logging` config. it's overwritten in Db.ts
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-11-04 14:23:58 +01:00
committed by GitHub
parent 40e413d958
commit eb3fffd203
4 changed files with 112 additions and 106 deletions

View File

@@ -136,6 +136,12 @@ export const schema = {
},
},
sqlite: {
database: {
doc: 'SQLite Database file name',
format: String,
default: 'database.sqlite',
env: 'DB_SQLITE_DATABASE',
},
executeVacuumOnStartup: {
doc: 'Runs VACUUM operation on startup to rebuild the database. Reduces filesize and optimizes indexes. WARNING: This is a long running blocking operation. Will increase start-up time.',
format: Boolean,