dbt stuff
This commit is contained in:
parent
f9e58369ca
commit
cfaa7cfecc
12 changed files with 157 additions and 2 deletions
44
code_thingies/dbtlearn/README.md
Normal file
44
code_thingies/dbtlearn/README.md
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# 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.
|
||||
|
||||
```yaml
|
||||
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.
|
||||
|
||||
|
||||
|
||||
# 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](https://docs.getdbt.com/docs/introduction)
|
||||
- Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers
|
||||
- Join the [chat](https://community.getdbt.com/) on Slack for live discussions and support
|
||||
- Find [dbt events](https://events.getdbt.com) near you
|
||||
- Check out [the blog](https://blog.getdbt.com/) for the latest news on dbt's development and best practices
|
||||
Loading…
Add table
Add a link
Reference in a new issue