vscode-dbt-power-user
vscode-dbt-power-user copied to clipboard
Provide button to execute dbt build
Describe the feature
Play, db and thunder buttons (when a model sql file is open) execute a model in different ways. Leaving the play button aside, db and thunder buttons run dbt run and dbt test commands, respectively.
I'm requesting another button that runs dbt build --select <model name>. As the doc below says, build runs models and tests one after the other, before the next model is executed. This works well in situations where I prefer upstream models to immediately fail and not have to wait until all models are first run, then the tests get done.
https://docs.getdbt.com/reference/commands/build
Packages like dbt_constraints are offering constraint creation features implemented as tests. This is another reason why I would like to run the test right after a model is run - to immediately get the constraints up.
Describe alternatives you've considered
Clicking on the db and then thunder button each time I edit a model.
Who will benefit?
Everyone who wants to have tests associated to a model to immediately run after the model is executed.
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!