MCPcopy Index your code
hub / github.com/AstrBotDevs/AstrBot / initialize

Method initialize

astrbot/core/db/__init__.py:59–60  ·  view source on GitHub ↗

初始化数据库连接

(self)

Source from the content-addressed store, hash-verified

57 )
58
59 async def initialize(self) -> None:
60 """初始化数据库连接"""
61
62 @asynccontextmanager
63 async def get_db(self) -> T.AsyncGenerator[AsyncSession, None]:

Callers 1

get_dbMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected