Snowflake
To add a Snowflake connection, click on the Snowflake option in Connect a data source section.
Connect
Fill in the connection settings:
Display name
The display name for the database in the Wren AI interface.
Username
The database username for the account that you want to use to connect to your PostgreSQL database.
Password
The password for the username that you use to connect to the database.
Account
The account name for the account that you want to use to connect to your Snowflake database. The format is organization_name-account_name
.
You could find the account name from the Snowflake dashboard.
Database name
The name of the database you want to connect to.
Schema
The schema name for the schema that you want to use to connect to your Snowflake database.
Click Next to start connection and go to the next step.
Select Tables
All tables of your connected PostgreSQL dataset will be listed in this step. Select which tables you want to use in Wren AI. Each selected table will be created as a data model. See the Modeling documentations to learn more about what is data models.
Define relationships
Define the relationships among selected tables in this step. If you have defined primary keys and foreign keys in your PostgreSQL dataset, we will list suggested relationships based on the information. If not, you can also add relationships by clicking the Add relationships button on the table blocks.
Define following properties in a relationship:
- From: Select the left side table and column of this relationship.
- To: Select the right side table and column of this relationship.
- Relationship Type: Select the type of relationship.
Find more information about relationship in Modeling - Working with Relationships
You can also skip this step and finish connection.