mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-10 18:57:56 +08:00
📝 更新文档
This commit is contained in:
@@ -369,7 +369,7 @@ class DBConfig:
|
||||
return res
|
||||
|
||||
async def clear_db(self):
|
||||
"""清空数据库"""
|
||||
"""清空数据库,用于单元测试清理环境"""
|
||||
async with create_session() as sess:
|
||||
await sess.execute(delete(User))
|
||||
await sess.execute(delete(Target))
|
||||
|
||||
Reference in New Issue
Block a user