# Snowflake

## Configuration

The Snowflake configurations are:

* `user`: the username to your Snowflake account
* `password`: the password to your Snowflake account
* `account`: the account name for your Snowflake account
* `role`: the desired role for the connection
* `warehouse`: the desired warehouse for the connection
* `database`: the desired database for the connection
* `schema`: the desired schema for the connection

{% code title="profile.yml" %}

```yaml
<profile name here>: # change this!
  adapters:
    <snowflake adapter name here>: # change this!
      type: snowflake
      user:
      password:
      account:
      role:
      warehouse:
      database:
      schema:

```

{% endcode %}

Under the hood, Prism takes care of parsing the configuration variables and establishing a connection to your Snowflake account.

## `hooks.sql()`

You can run queries against the Snowflake connection using the `hooks.sql` function:

```python
def run(self, tasks, hooks):
    data = hooks.sql(
        adapter_name="<snowflake adapter name>",
        query="SELECT * FROM table"
    )
```

Note that when `return_type = None`, the result will be a list tuples containing the query data.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.runprism.com/v0.2.8/adapters/sql/snowflake.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
