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()
|
await s.rollback()
|
||||||
else:
|
else:
|
||||||
await s.commit()
|
await s.commit()
|
||||||
|
await s.close()
|
||||||
async def paginate(self, select: Select, *,
|
async def paginate(self, select: Select, *,
|
||||||
page: int | None = None, per_page: int | None = None,
|
page: int | None = None, per_page: int | None = None,
|
||||||
max_per_page: int | None = None, error_out: bool = True,
|
max_per_page: int | None = None, error_out: bool = True,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue