Skip to content

Commit 8ddd5dd

Browse files
committed
remove MotherDuck token attribute from DuckDBAttachOptions
1 parent 89f3ac8 commit 8ddd5dd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sqlmesh/core/config/connection.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ class DuckDBAttachOptions(BaseConfig):
361361
type: str
362362
path: str
363363
read_only: bool = False
364-
token: t.Optional[str] = None
365364

366365
def to_sql(self, alias: str) -> str:
367366
options = []
@@ -377,8 +376,7 @@ def to_sql(self, alias: str) -> str:
377376
f" AS {alias}" if not (self.type == "motherduck" or self.path.startswith("md:")) else ""
378377
)
379378
options_sql = f" ({', '.join(options)})" if options else ""
380-
token_sql = "?motherduck_token=" + self.token if self.token else ""
381-
return f"ATTACH '{self.path}{token_sql}'{alias_sql}{options_sql}"
379+
return f"ATTACH '{self.path}'{alias_sql}{options_sql}"
382380

383381

384382
class DuckDBConnectionConfig(BaseDuckDBConnectionConfig):

0 commit comments

Comments
 (0)