This commit is contained in:
jxxghp
2023-10-17 21:07:38 +08:00
parent 3f5f689965
commit 84f5ce8a0b
3 changed files with 8 additions and 4 deletions

View File

@ -52,6 +52,9 @@ def db_lock(func):
class DbOper:
"""
数据库操作基类
"""
_db: Session = None
def __init__(self, db: Session = None):
@ -59,4 +62,3 @@ class DbOper:
self._db = db
else:
self._db = ScopedSession()