snowmobile.core.cfg.connection¶
[connection] section from snowmobile.toml, including subsections.
Module Contents¶
Classes¶
[connection.credentials.credentials_alias] | |
[connection] |
- class
snowmobile.core.cfg.connection.Credentials¶ Bases:
snowmobile.core.cfg.base.Base[connection.credentials.credentials_alias]
-
user:str¶
-
password:str¶
-
role:str¶
-
account:str¶
-
warehouse:str¶
-
database:str¶
-
schema_name:str¶
- property
credentials(self)¶ Returns namespace as a dictionary, excluding
_alias.
-
- class
snowmobile.core.cfg.connection.Connection(**data)¶ Bases:
snowmobile.core.cfg.base.Base[connection]
This includes the
default_aliaswhich is the set of credentials thatsnowmobilewill authenticate with ifcredsis not explicitly passed.-
default_alias¶ The set of credentials that is used if
credsis not explicitly passed tosnowmobile.connecton instantiation.- Type
-
creds¶ The name given to the set of credentials within the credentials block of the snowmobile.toml file (e.g. [credentials.creds] assigns an
credsto a given set of credentials.- Type
-
default_alias:str¶
-
provided_alias:str¶
-
credentials:Dict[str, Credentials]¶
-
defaults:Dict¶
- property
creds(self)¶ Credentials alias used by current Connection.
- property
current(self)¶ Returns current credentials.
- property
connect_kwargs(self) → Dict¶ Arguments from snowmobile.toml for snowflake.connector.connect().
-