Skip to main content
The 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.
string
required
The SQL query string to execute.
(string | number | boolean | null)[]
An array of bind values for the parameterized query.
string
required
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:
"database"
Discriminator for the response type.
Record<string, unknown>[]
An array of objects representing the rows returned by the query.
number
The number of rows affected by the query.