Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions sqli/services/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,14 @@ async def _init_pg(app: Application):


async def _close_pg(app: Application):
"""Closes the PostgreSQL database connection associated with the application.

Args:
app (Application): The application instance containing the database connection.

Returns:
None: This method doesn't return anything.

"""
app['db'].close()
await app['db'].wait_closed()
Loading