From 7f1be3c0c2acd70df97e16915f620b093c6d0fea Mon Sep 17 00:00:00 2001 From: Diomidis Spinellis Date: Mon, 20 Jan 2025 15:28:22 +0200 Subject: [PATCH] Remove unneeded database creation code --- src/alexandria3k/data_source.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/alexandria3k/data_source.py b/src/alexandria3k/data_source.py index 240afdd..3fca299 100644 --- a/src/alexandria3k/data_source.py +++ b/src/alexandria3k/data_source.py @@ -588,9 +588,6 @@ def __init__( f"Invalid database specification: '{db_spec}'; expected name:path" ) from exc - # Create database if needed - sqlite3.connect(db_path).close() - attach_command = f"ATTACH DATABASE '{db_path}' AS {db_name}" try_sql_execute(self.vdb, attach_command) self.attached_databases.append(db_name)