bascially ready to ship
This commit is contained in:
@@ -62,6 +62,8 @@ class Database:
|
||||
|
||||
def connect(self):
|
||||
"""Establish database connection."""
|
||||
if not self.db_path.exists():
|
||||
raise FileNotFoundError(f"Database not found: {self.db_path}")
|
||||
self.conn = sqlite3.connect(self.db_path)
|
||||
self.conn.row_factory = sqlite3.Row
|
||||
|
||||
|
||||
Reference in New Issue
Block a user