Skip to content

Commit

Permalink
Snowflake setup (#12)
Browse files Browse the repository at this point in the history
Updated .sql files to work with both Postgres and Snowflake databases.
Added setup_snowflake.sh script to setup the databases in Snowflake.
  • Loading branch information
wendy-aw authored Jan 10, 2024
1 parent db8c3d4 commit ce902c4
Show file tree
Hide file tree
Showing 9 changed files with 873 additions and 2,284 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ export DBPORT=5432
./setup.sh
```

#### Snowflake
To setup the data in snowflake, you would need to have the snowflake cli installed ([instructions](https://docs.snowflake.com/en/user-guide/snowsql-install-config)), and have your credentials configured as per the [docs](https://docs.snowflake.com/en/user-guide/snowsql-config). You can then run the following command to setup the data:
```sh
./setup_snowflake.sh
```
This will create 1 database per database in the repo as before, using `public` as the default schema.

Note that the same sql files work for both the postgres and snowflake databases, so you can use the same sql files to setup both databases.

### Python Library

This is the recommended way to access the schema from the json files in a python environment. To use the python library in your code, navigate to this repository and install it using pip:
Expand Down
Loading

0 comments on commit ce902c4

Please sign in to comment.