> ## Documentation Index
> Fetch the complete documentation index at: https://docs.genloop.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Snowflake

> Connect a Snowflake data warehouse to Genloop with your account identifier, warehouse, role, and read-only credentials, and query your data in natural language.

Genloop connects to Snowflake over its cloud service using your account credentials. Instead of a host and port, you provide your account identifier, a warehouse for compute, and a role that has read access.

## Before you connect

* A Snowflake user and role with read access to the tables you want to query.
* A warehouse Genloop can use to run queries.
* If your account has network policies, allow Genloop's regional IP address. See [Before you begin](/using-genloop/connections/connect-a-database#before-you-begin).

## Connection fields

| Field                  | Description                                                                                   |
| ---------------------- | --------------------------------------------------------------------------------------------- |
| **Connection name**    | A name to identify this connection in Genloop                                                 |
| **Account identifier** | Your Snowflake account identifier, from your URL: `account_identifier.snowflakecomputing.com` |
| **Username**           | Snowflake user Genloop connects as                                                            |
| **Password**           | Password for that user                                                                        |
| **Warehouse**          | Warehouse used to run queries                                                                 |
| **Role**               | Role Genloop assumes for the connection                                                       |
| **Database**           | Database to query                                                                             |

## Encryption and network

Genloop reaches Snowflake over the internet using an encrypted (HTTPS) connection. There is no SSL setting to configure, and an SSH tunnel is not used.

## Permissions

Genloop only reads your data and never writes to your warehouse. You can connect with any role that already has read access to the tables you select.

If you want a dedicated read-only role for Genloop, ask your Snowflake administrator to set one up.

<Accordion title="Minimal read-only grant (for your Snowflake administrator)">
  Run this in Snowflake:

  ```sql theme={null}
  GRANT USAGE ON WAREHOUSE your_warehouse TO ROLE genloop_role;
  GRANT USAGE ON DATABASE your_database TO ROLE genloop_role;
  GRANT USAGE ON SCHEMA your_database.your_schema TO ROLE genloop_role;
  GRANT SELECT ON ALL TABLES IN SCHEMA your_database.your_schema TO ROLE genloop_role;
  ```
</Accordion>

## Next steps

<CardGroup cols={2}>
  <Card title="Connect a database" icon="database" href="/using-genloop/connections/connect-a-database">
    Back to the full connection flow.
  </Card>

  <Card title="Context Hub" icon="brain" href="/using-genloop/context-hub">
    View and edit the memory built from your connection.
  </Card>
</CardGroup>
