Skip to content

Commit

Permalink
Remove unneeded database creation code
Browse files Browse the repository at this point in the history
  • Loading branch information
dspinellis committed Jan 20, 2025
1 parent c4893a7 commit 7f1be3c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/alexandria3k/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f1be3c

Please sign in to comment.