We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c6ea27 commit 3499734Copy full SHA for 3499734
dbt/adapters/sqlite/connections.py
@@ -61,8 +61,10 @@ def open(cls, connection: Connection):
61
schemas_and_paths[schema] = os.path.abspath(path)
62
63
try:
64
+ attached = []
65
if 'main' in schemas_and_paths:
66
handle: sqlite3.Connection = sqlite3.connect(schemas_and_paths['main'])
67
+ attached.append(schemas_and_paths['main'])
68
else:
69
raise FailedToConnectException("at least one schema must be called 'main'")
70
@@ -74,7 +76,6 @@ def open(cls, connection: Connection):
74
76
75
77
cursor = handle.cursor()
78
- attached = []
79
for schema in set(schemas_and_paths.keys()) - set(['main']):
80
path = schemas_and_paths[schema]
81
cursor.execute(f"attach '{path}' as '{schema}'")
0 commit comments