feat(db): add support for SQLite WAL mode

This commit is contained in:
InfinityPacer
2024-11-12 17:17:16 +08:00
parent aafb2bc269
commit 24cc36033f
4 changed files with 43 additions and 8 deletions

View File

@@ -69,6 +69,8 @@ class ConfigModel(BaseModel):
DB_MAX_OVERFLOW: int = 500
# SQLite 的 busy_timeout 参数,默认为 60 秒
DB_TIMEOUT: int = 60
# SQLite 是否启用 WAL 模式,默认关闭
DB_WAL_ENABLE: bool = False
# 配置文件目录
CONFIG_DIR: Optional[str] = None
# 超级管理员