udemy-complete-dbt-bootcamp/code_thingies/dbtlearn
2023-10-30 16:57:30 +01:00
..
analyses dbt stuff 2023-10-29 18:40:01 +01:00
macros dbt stuff 2023-10-29 18:40:01 +01:00
models/src Some stuff 2023-10-30 16:57:30 +01:00
seeds dbt stuff 2023-10-29 18:40:01 +01:00
snapshots dbt stuff 2023-10-29 18:40:01 +01:00
tests dbt stuff 2023-10-29 18:40:01 +01:00
.gitignore dbt stuff 2023-10-29 18:40:01 +01:00
dbt_project.yml Thingies 2023-10-30 16:19:14 +01:00
README.md More thingies 2023-10-30 16:28:30 +01:00
requirements.txt Add dbt dependency 2023-10-30 16:18:52 +01:00

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