MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / get_session_manager

Function get_session_manager

src/database/session.py:365–371  ·  view source on GitHub ↗

获取数据库会话管理器

()

Source from the content-addressed store, hash-verified

363
364
365def get_session_manager() -> DatabaseSessionManager:
366 """
367 获取数据库会话管理器
368 """
369 if _db_manager is None:
370 raise RuntimeError("数据库未初始化,请先调用 init_database()")
371 return _db_manager
372
373
374@contextmanager

Callers 3

get_dbFunction · 0.85
delete_accountFunction · 0.85
import_databaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected