feat(core): Add an option to enable WAL mode for SQLite (#7118)

https://www.sqlite.org/wal.html
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-09-07 15:58:48 +02:00
committed by GitHub
parent 67aaad15eb
commit 1d1a022def
3 changed files with 9 additions and 1 deletions

View File

@@ -164,6 +164,12 @@ export const schema = {
default: 'database.sqlite',
env: 'DB_SQLITE_DATABASE',
},
enableWAL: {
doc: 'Enable SQLite WAL mode',
format: Boolean,
default: false,
env: 'DB_SQLITE_ENABLE_WAL',
},
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,