This commit is contained in:
2025-10-23 18:28:17 +02:00
parent 9a64ca5b01
commit 3d5c19939c
5 changed files with 277 additions and 96 deletions

View File

@@ -91,6 +91,8 @@ async def init_db() -> None:
db_url,
echo=settings.log_level == "DEBUG",
poolclass=pool.StaticPool if "sqlite" in db_url else pool.QueuePool,
pool_size=5 if "sqlite" not in db_url else None,
max_overflow=10 if "sqlite" not in db_url else None,
pool_pre_ping=True,
future=True,
)