From 812820b18b6c51e6eb0112619ef858ceacdaefee Mon Sep 17 00:00:00 2001 From: Damon McCullough Date: Tue, 31 Dec 2024 09:34:57 -0500 Subject: [PATCH] add cdbg product folder and dbt project --- products/cdbg/dbt_project.yml | 21 +++++++++++++++++++++ products/cdbg/profiles.yml | 11 +++++++++++ 2 files changed, 32 insertions(+) create mode 100644 products/cdbg/dbt_project.yml create mode 100644 products/cdbg/profiles.yml diff --git a/products/cdbg/dbt_project.yml b/products/cdbg/dbt_project.yml new file mode 100644 index 000000000..84891832c --- /dev/null +++ b/products/cdbg/dbt_project.yml @@ -0,0 +1,21 @@ +name: "cdbg" + +profile: "dcp-de-postgres" + +model-paths: ["models"] + +tests: + +store_failures: true + schema: "_tests" + +models: + cdbg: + staging: + +materialized: view + intermediate: + +materialized: view + product: + +materialized: table + +flags: + fail-fast: true diff --git a/products/cdbg/profiles.yml b/products/cdbg/profiles.yml new file mode 100644 index 000000000..671252586 --- /dev/null +++ b/products/cdbg/profiles.yml @@ -0,0 +1,11 @@ +dcp-de-postgres: + target: dev + outputs: + dev: + type: postgres + host: "{{ env_var('BUILD_ENGINE_HOST') }}" + user: "{{ env_var('BUILD_ENGINE_USER') }}" + password: "{{ env_var('BUILD_ENGINE_PASSWORD') }}" + port: "{{ env_var('BUILD_ENGINE_PORT') | as_number }}" + dbname: "{{ env_var('BUILD_ENGINE_DB') }}" + schema: "{{ env_var('BUILD_ENGINE_SCHEMA') }}"