vscode-dbt-power-user
vscode-dbt-power-user copied to clipboard
Implement Target Switching Feature in dbt Power User
Describe the feature
Please add a feature that allows users to quickly switch between different targets defined in profiles.yml directly within the dbt Power User extension. This feature should be similar to the --target flag in dbt CLI, enabling users to change the target on the fly for functionalities like query results and column-level lineage. This will prevent errors such as "Invalid object name" by allowing users to switch to the appropriate target environment without manually editing files or settings.
Describe alternatives you've considered
As a workaround, I considered maintaining separate profile configurations and manually switching between these profiles by editing profiles.yml. However, this method is error-prone and inconvenient, especially when frequent changes are necessary.
Who will benefit?
This feature will benefit dbt developers who manage multiple environments (e.g., development, production) within their projects. It allows for seamless transitions between these environments, enhancing productivity and reducing the risk of errors due to environment mismatches.
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
Very similar to #124
This feature was introduced in version 0.45.0. You can modify the target in the bottom panel next to the "defer" status icon.This feature was introduced in version 0.45.0. You can modify the target in the bottom panel next to the "defer" status icon.