Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

add support for custom database config #586

Merged
merged 1 commit into from
May 24, 2023
Merged

Conversation

dlawin
Copy link
Contributor

@dlawin dlawin commented May 18, 2023

Resolves #483

It's possible to set databases in model configs or model .yml, use this value for the "prod database" when it is present, otherwise fall back to the existing logic.

Old:
config db > dev db

New:
custom db > config db > dev db

Added new unit test test_get_diff_vars_custom_db to verify model.config.database is used for prod_path when present.

@dlawin dlawin added enhancement New feature or request --dbt Issues/features related to the dbt integration labels May 18, 2023
@dlawin dlawin requested review from vvkh, pik94 and kylemcnair May 18, 2023 21:11
@dlawin dlawin self-assigned this May 18, 2023
@dlawin dlawin merged commit 7b7ad4e into datafold:master May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
--dbt Issues/features related to the dbt integration enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom databases in dbt integration
3 participants