mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 13:35:24 +02:00
dbt: add page (#14475)
This commit is contained in:
parent
9b30d1de87
commit
e6889b22eb
1 changed files with 32 additions and 0 deletions
32
pages/common/dbt.md
Normal file
32
pages/common/dbt.md
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# dbt
|
||||||
|
|
||||||
|
> A tool to model transformations in data warehouses.
|
||||||
|
> More information: <https://github.com/dbt-labs/dbt-core>.
|
||||||
|
|
||||||
|
- Debug the dbt project and the connection to the database:
|
||||||
|
|
||||||
|
`dbt debug`
|
||||||
|
|
||||||
|
- Run all models of the project:
|
||||||
|
|
||||||
|
`dbt run`
|
||||||
|
|
||||||
|
- Run all tests of `example_model`:
|
||||||
|
|
||||||
|
`dbt test --select example_model`
|
||||||
|
|
||||||
|
- Build (load seeds, run models, snapshots, and tests associated with) `example_model` and its downstream dependents:
|
||||||
|
|
||||||
|
`dbt build --select example_model+`
|
||||||
|
|
||||||
|
- Build all models, except the ones with the tag `not_now`:
|
||||||
|
|
||||||
|
`dbt build --exclude "tag:not_now"`
|
||||||
|
|
||||||
|
- Build all models with tags `one` and `two`:
|
||||||
|
|
||||||
|
`dbt build --select "tag:one,tag:two"`
|
||||||
|
|
||||||
|
- Build all models with tags `one` or `two`:
|
||||||
|
|
||||||
|
`dbt build --select "tag:one tag:two"`
|
Loading…
Add table
Reference in a new issue