project
│ README.md
│ requirements.txt
| .gitignore
| packages.yml
| dbt_project.yml
│
└───miscellaneous
│ │ profiles.yml : sample config file
│
└───models
│ │ schema.yml : for generic test & documentation
│ └───src : all core sql file
│ └───dim : data generated from src
│ └───fact : data generated from src
│
└───seeds
│ │ *.csv : static file want to export in DWH
│
└───snapshots
│ │ *.sql : history/log of tables
│
└───tests
│ │ *.sql : custom test file
- create python venv
- install
requirements.txt
-
DB setup (
postgres
)- DBName: dvdrental
- restore
miscellaneous --> dvdrental.tar
inpublic
schema - SchemaName: dashingdvdrental
-
clone the repo
-
goto repo
-
File configure: configure the following file according to
miscellaneous --> profiles.yml
- Windows
- C:\Users\This Pc\.dbt
- linux
- mac
- Windows
-
check config:
dbt debug
-
test project:
dbt test
-
run project:
dbt run
-
snapshot/log generate:
dbt snapshot
-
Documentation of project:
dbt docs generate
dbt docs serve
- place any
*.csv
file inseeds
dir & rundbt seed
. A table will be created with the name of csv file.