SnowflakeResourceClient allows you to execute SQL queries against Snowflake databases. It supports async execution, result pagination, and detailed error handling.
Setup
Create a Snowflake connection using key-pair (JWT) authentication. Configure account, database, schema, warehouse, and role settings per environment, and test connections before saving.Usage
Methods
execute
Submit a SQL query for execution.
The SQL query string to execute.
An array of bind values for the parameterized query.
A unique identifier for this operation, used for tracing and logging.
status
Check the status of a long-running query.
cancel
Cancel a running statement.
Outputs
On success (ok: true), the result object contains:
Discriminator for the response type.
An array of objects representing the rows returned by the query.
The number of rows affected by the query.