fix db config

This commit is contained in:
jxxghp
2025-08-19 14:05:24 +08:00
parent dc50a68b01
commit 3ff3e4b106
2 changed files with 12 additions and 16 deletions

View File

@@ -64,9 +64,9 @@ def _get_sqlite_engine(is_async: bool = False):
# 当使用 QueuePool 时,添加 QueuePool 特有的参数
if _pool_class == QueuePool:
_db_kwargs.update({
"pool_size": settings.CONF.dbpool,
"pool_size": settings.DB_POOL_SIZE,
"pool_timeout": settings.DB_POOL_TIMEOUT,
"max_overflow": settings.CONF.dbpooloverflow
"max_overflow": settings.DB_MAX_OVERFLOW
})
# 创建数据库引擎