Welcome to this dbt and GlareDB project demo!
To run:
- Clone this repo, then
cd
inside of it - Activate the included virtual environment by running
source ./venv/bin/activate
from your shell - Login to your GlareDB Cloud account (free sign-up at https://console.glaredb.com/)
- Click the Connect button in the upper right of the GlareDB Cloud workspace to get your Postgres connection string
- Take the credentials from the connection string and paste them into the
profiles.yml
file included in the repo- For the
dbname
, take the org name (the part after the@
and before.proxy.glaredb.com
, add a slash, and then add the deployment name (the last part of your connection string) - for instance, if your connection string ispostgresql://5dlVK8XLaVJp:<PASS>@o_vAIOmhx.proxy.glaredb.com:6543/empty_rain
, yourdbname
will beo_vAIOmhx/empty_rain
- For the host, specify
proxy.glaredb.com
- For the
- From your shell, run
dbt run --profiles-dir .
- Observe your running pipeline
- Check out the rest of the repo! Take a look at the
runnable
models, and check out thereference
directory for examples on how to select data from a bunch of different data sources