feat: Add option to switch sqlite to WAL (#6050)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Xavier L.
2025-09-08 12:23:37 -04:00
committed by GitHub
parent c46c412bf5
commit 3774f68393
4 changed files with 34 additions and 9 deletions

View File

@@ -196,6 +196,8 @@ class AppSettings(AppLoggingSettings):
DB_ENGINE: str = "sqlite" # Options: 'sqlite', 'postgres'
DB_PROVIDER: AbstractDBProvider | None = None
SQLITE_MIGRATE_JOURNAL_WAL: bool = False
@property
def DB_URL(self) -> str | None:
return self.DB_PROVIDER.db_url if self.DB_PROVIDER else None