Skip to content

Commit 7607d6c

Browse files
committed
Add host/port to snowflake connection settings.
1 parent 119e4f8 commit 7607d6c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sqlmesh/core/config/connection.py

+6
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ class SnowflakeConnectionConfig(ConnectionConfig):
407407
register_comments: Whether or not to register model comments with the SQL engine.
408408
pre_ping: Whether or not to pre-ping the connection before starting a new transaction to ensure it is still alive.
409409
session_parameters: The optional session parameters to set for the connection.
410+
host: Host address for the connection.
411+
port: Port for the connection.
410412
"""
411413

412414
account: str
@@ -417,6 +419,8 @@ class SnowflakeConnectionConfig(ConnectionConfig):
417419
role: t.Optional[str] = None
418420
authenticator: t.Optional[str] = None
419421
token: t.Optional[str] = None
422+
host: t.Optional[str] = None
423+
port: t.Optional[int] = None
420424
application: t.Literal["Tobiko_SQLMesh"] = "Tobiko_SQLMesh"
421425

422426
# Private Key Auth
@@ -550,6 +554,8 @@ def _connection_kwargs_keys(self) -> t.Set[str]:
550554
"private_key",
551555
"session_parameters",
552556
"application",
557+
"host",
558+
"port",
553559
}
554560

555561
@property

0 commit comments

Comments
 (0)