Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-31 00:17:43 +00:00
parent dfd5b3bcaa
commit 20442da91f
21 changed files with 418 additions and 2 deletions

37
tldr/dbt Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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"`