Skip to content

Bulk asynchronous downloader for multiple file hosts

update db_manager

Jules-WinnfieldX4c3d7723e375
diff --git a/cyberdrop_dl/managers/db_manager.py b/cyberdrop_dl/managers/db_manager.py
index 3cf9aaef3..c3edaf6de 100644
--- a/cyberdrop_dl/managers/db_manager.py
+++ b/cyberdrop_dl/managers/db_manager.py
@@ -31,6 +31,10 @@ class DBManager:
await self.history_table.startup()
await self.temp_table.startup()
+ async def close(self) -> None:
+ """Close the DBManager"""
+ await self.db_conn.close()
+
async def _pre_allocate(self) -> None:
"""We pre-allocate 100MB of space to the SQL file just in case the user runs out of disk space"""
create_pre_allocation_table = "CREATE TABLE IF NOT EXISTS t(x);"