# Snowflake Tasks
This module contains a collection of tasks for interacting with snowflake databases via the snowflake-connector-python library.
# SnowflakeQuery
class
prefect.tasks.snowflake.snowflake.SnowflakeQuery
(account, user, password=None, private_key=None, database=None, schema=None, role=None, warehouse=None, query=None, data=None, autocommit=None, **kwargs)[source]Task for executing a query against a snowflake database.
Args:
account (str)
: snowflake account name, see snowflake connector package documentation for detailsuser (str)
: user name used to authenticatepassword (str, optional)
: password used to authenticate. password or private_lkey must be presentprivate_key (bytes, optional)
: pem to authenticate. password or private_key must be presentdatabase (str, optional)
: name of the default database to useschema (int, optional)
: name of the default schema to userole (str, optional)
: name of the default role to usewarehouse (str, optional)
: name of the default warehouse to usequery (str, optional)
: query to execute against databasedata (tuple, optional)
: values to use in query, must be specified using placeholder is query stringautocommit (bool, optional)
: set to True to autocommit, defaults to None, which takes snowflake AUTOCOMMIT parameter**kwargs (dict, optional)
: additional keyword arguments to pass to the Task constructor
methods: |
---|
prefect.tasks.snowflake.snowflake.SnowflakeQuery.run (query=None, data=None, autocommit=None)[source] |
Task run method. Executes a query against snowflake database.
|
This documentation was auto-generated from commit n/a
on July 1, 2021 at 18:35 UTC