add export type settings and enhance metadata structure (#181)

* fix(session): enhance database connection settings with pool pre-ping and recycle options

* feat(metadata): add export type settings and enhance metadata structure

* fix(base_op): improve sample handling by introducing target_type key and consolidating text/data retrieval logic

* feat(metadata): add export type settings and enhance metadata structure

* feat(metadata): add export type settings and enhance metadata structure
This commit is contained in:
hhhhsc701
2025-12-19 11:54:08 +08:00
committed by GitHub
parent d70a3eda0d
commit ab4523b556
6 changed files with 57 additions and 11 deletions

View File

@@ -10,7 +10,9 @@ logger = get_logger(__name__)
engine = create_async_engine(
settings.database_url,
echo=False, # 关闭SQL调试日志以减少输出
future=True
future=True,
pool_pre_ping=True,
pool_recycle=3600
)
# 创建会话工厂