add session cleanup
This commit is contained in:
parent
7953ff4847
commit
1ab0982dc3
1 changed files with 1 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ class SQLAlchemy:
|
|||
await s.rollback()
|
||||
else:
|
||||
await s.commit()
|
||||
await s.close()
|
||||
async def paginate(self, select: Select, *,
|
||||
page: int | None = None, per_page: int | None = None,
|
||||
max_per_page: int | None = None, error_out: bool = True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue