dlt.destinations.impl.snowflake.configuration
CONNECTION_EXCLUSIVE_FIELDS
Credentials fields that a connections.toml connection provides.
dlt rejects them together with connection_name.
CONNECTION_OVERRIDE_PARAMS
Session parameters that can override the values of the connection
CONNECTION_PARAMS_TO_FIELDS
Connector connection parameters and the credentials fields that receive them
SnowflakeCredentialsWithoutDefaults Objects
@configspec(init=False)
class SnowflakeCredentialsWithoutDefaults(ConnectionStringCredentials)
drivername
type: ignore[misc]
host
Snowflake account identifier, e.g. kgiotue-wn98412
session_timezone
Session TIMEZONE. None keeps the account default
connection_name
Name of a connection in Snowflake connections.toml. The connector loads the connection and
dlt sends only the session overrides. dlt also reads the connection parameters for tools that
cannot use connections.toml, for example dbt.
SnowflakeCredentials Objects
@configspec(init=False)
class SnowflakeCredentials(SnowflakeCredentialsWithoutDefaults,
CredentialsWithDefault)
allow_default_connection_fallback
When true, dlt falls back to the default connection of the connector if connection_name
names a connection that is not defined
SnowflakeClientConfiguration Objects
@configspec
class SnowflakeClientConfiguration(DestinationClientDwhWithStagingConfiguration
)
destination_type
type: ignore[misc]
stage_name
Use an existing named stage instead of the default. Default uses the implicit table stage per table
keep_staged_files
Whether to keep or delete the staged files after COPY INTO succeeds
csv_format
Optional csv format configuration
query_tag
A template with placeholders used to tag Snowflake sessions for dlt operations.
create_indexes
Whether UNIQUE or PRIMARY KEY constrains should be created
use_vectorized_scanner
Whether to use or not use the vectorized scanner in COPY INTO
enable_atomic_swap
When enabled and using the staging-optimized replace strategy, tables will be atomically swapped using ALTER TABLE ... SWAP WITH ... instead of being cloned. This preserves permissions and enables zero-downtime loading.
use_decfloat
Whether to use DECFLOAT type for unbound decimals instead of DECIMAL
use_nested_types
When true, arrow-nested json columns are created as native ARRAY/OBJECT (structured) types instead of VARIANT.
use_timestamp_tz
When true, timezone-aware timestamps are created as TIMESTAMP_TZ, which stores the offset written with each value, instead of TIMESTAMP_LTZ
fingerprint
def fingerprint() -> str
Returns a fingerprint of the account host.
data_location
def data_location() -> str
Returns the account host.