refactor(db): 修复异步连接池无界增长,并完成 SQLAlchemy 2.0 迁移与分层归位 (#6320)

This commit is contained in:
Aqr-K
2026-08-15 06:58:38 +08:00
committed by GitHub
parent e28de9cfe1
commit 8a11214a43
252 changed files with 11405 additions and 2889 deletions
+7
View File
@@ -1,3 +1,10 @@
"""
ORM 模型。
_identity 必须在此处导入:它在 import 期把媒体身份归一挂到 mapper 事件上,是六张带
身份列的表的写入不变量。导入任一模型都会先初始化本包,因此这一行让强制点无处可绕。
"""
from . import _identity # noqa: F401 仅为注册 mapper 事件,不导出符号
from .agentchat import AgentChat
from .agenttask import AgentTask
from .agenttaskrun import AgentTaskRun