1.3 KiB
1.3 KiB
dbt project
This is the dbt project for the course.
Set up
You need to place a profile for the local postgres instance in ~/.dbt/profiles.yaml. See below a sample config that should be a good starting point if you follow the instructions in the database dir of this project.
dbtlearn:
outputs:
dev:
type: postgres
threads: 4
host: localhost
port: 5432
user: the user
pass: the password
dbname: airbnb
schema: dev
target: dev
Once you have set this up and the database as well, you can run dbt debug to ensure everything is set up correctly and dbt can reach the database.
You should also delete the lines under the dbtlearn key in the dbt_project.yml file.
Also delete the contents of the models folder.
DBT noisy things below
Using the starter project
Try running the following commands:
- dbt run
- dbt test
Resources:
- Learn more about dbt in the docs
- Check out Discourse for commonly asked questions and answers
- Join the chat on Slack for live discussions and support
- Find dbt events near you
- Check out the blog for the latest news on dbt's development and best practices