Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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_db
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected