dlt.destinations.impl.snowflake.factory
snowflake Objects
class snowflake(Destination[SnowflakeClientConfiguration, "SnowflakeClient"])
__init__
def __init__(credentials: Union[SnowflakeCredentials, Dict[str, Any],
str] = None,
stage_name: Optional[str] = None,
keep_staged_files: bool = True,
csv_format: Optional[CsvFormatConfiguration] = None,
query_tag: Optional[str] = None,
create_indexes: bool = False,
destination_name: str = None,
environment: str = None,
**kwargs: Any) -> None
Configure the Snowflake destination to use in a pipeline.
All arguments provided here supersede other configuration sources such as environment variables and dlt config files.
Arguments:
credentials
Union[SnowflakeCredentials, Dict[str, Any], str], optional - Credentials to connect to the snowflake database. Can be an instance ofSnowflakeCredentials
or a connection string in the formatsnowflake://user:password@host:port/database
stage_name
Optional[str], optional - Name of an existing stage to use for loading data. Default uses implicit stage per tablekeep_staged_files
bool, optional - Whether to delete or keep staged files after loadingcsv_format
Optional[CsvFormatConfiguration] - Optional csv format configurationquery_tag
Optional[str] - A tag with placeholders to tag sessions executing jobscreate_indexes
bool, optional - Whether UNIQUE or PRIMARY KEY constrains should be createddestination_name
str, optional - Name of the destination. Defaults to None.environment
str, optional - Environment name. Defaults to None.**kwargs
Any, optional - Additional arguments forwarded to the destination config