Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add host/port to snowflake connection settings #4023

Merged
merged 3 commits into from
Mar 31, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sqlmesh/core/config/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ class SnowflakeConnectionConfig(ConnectionConfig):
register_comments: Whether or not to register model comments with the SQL engine.
pre_ping: Whether or not to pre-ping the connection before starting a new transaction to ensure it is still alive.
session_parameters: The optional session parameters to set for the connection.
host: Host address for the connection.
port: Port for the connection.
"""

account: str
Expand All @@ -417,6 +419,8 @@ class SnowflakeConnectionConfig(ConnectionConfig):
role: t.Optional[str] = None
authenticator: t.Optional[str] = None
token: t.Optional[str] = None
host: t.Optional[str] = None
port: t.Optional[int] = None
application: t.Literal["Tobiko_SQLMesh"] = "Tobiko_SQLMesh"

# Private Key Auth
Expand Down Expand Up @@ -550,6 +554,8 @@ def _connection_kwargs_keys(self) -> t.Set[str]:
"private_key",
"session_parameters",
"application",
"host",
"port",
}

@property
Expand Down