feat(core): Add support for SQLite connection pooling (#8722)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-03-14 13:45:16 +01:00
committed by GitHub
parent d85d0ecf45
commit c4c319d7cf
6 changed files with 87 additions and 21 deletions

View File

@@ -171,11 +171,17 @@ export const schema = {
env: 'DB_SQLITE_DATABASE',
},
enableWAL: {
doc: 'Enable SQLite WAL mode',
doc: 'Enable SQLite WAL mode (Always enabled for pool-size > 1)',
format: Boolean,
default: false,
env: 'DB_SQLITE_ENABLE_WAL',
},
poolSize: {
doc: 'SQLite Pool Size (Setting this to 0 disables pooling)',
format: Number,
default: 0,
env: 'DB_SQLITE_POOL_SIZE',
},
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,