Prerequisites
Before proceeding, ensure the following prerequisites are met:- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect Snowflake to MindsDB, install the required dependencies following this instruction.
Please note that, if you are using Docker to run MindsDB, before installing the dependencies for this integration as per the instructions given above, it is currently necessary to install Git in the container. To do this, run the following commands:Start an interactive shell in the container:If you haven’t specified a name when spinning up the MindsDB container with The need to perform this step will be removed in future versions of MindsDB.
docker run
, you can find it by running docker ps
.Install Git:- Install or ensure access to Snowflake.
Implementation
This handler is implemented using the Snowflake connector. The required arguments to establish a connection are as follows:host
is the host name or IP address. The host name comes from the Snowflake link (for example,uvwxyz123.us-west.gcp.snowflakecomputing.com
).port
is the port used to make TCP/IP connection.database
is the database name. You can find it in the Snowflake dashboard under the Databases tab.user
is the database user.password
is the database password.account
is the Snowflake account. The account name comes from the Snowflake link (for example,uvwxyz123.us-west.gcp
).schema
is the default schema name used to query the database.protocol
is the protocol that defaults tohttps
if left blank.warehouse
is the warehouse account. You can find it in the Snowflake dashboard under the Warehouses tab.