fix shudown

This commit is contained in:
jxxghp
2024-10-15 13:42:41 +08:00
parent 810e3c98f9
commit 8af37a0adc
15 changed files with 88 additions and 16 deletions
+7
View File
@@ -41,6 +41,13 @@ def get_db() -> Generator:
db.close()
def close_database():
"""
关闭所有数据库连接
"""
Engine.dispose()
def get_args_db(args: tuple, kwargs: dict) -> Optional[Session]:
"""
从参数中获取数据库Session对象