From 60fcbee6a5da240442d1f393a843d34a18115eee Mon Sep 17 00:00:00 2001 From: Amelia Helland Date: Fri, 15 Sep 2023 21:05:19 +0000 Subject: [PATCH 1/3] Declare the greenery directory as a dbt project. --- greenery/dbt_project.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 greenery/dbt_project.yml diff --git a/greenery/dbt_project.yml b/greenery/dbt_project.yml new file mode 100644 index 000000000..67fe6ac79 --- /dev/null +++ b/greenery/dbt_project.yml @@ -0,0 +1,36 @@ +# Name your project! Project names should contain only lowercase characters +# and underscores. A good package name should reflect your organization's +# name or the intended use of these models +name: 'greenery' +version: '1.0.1' +config-version: 2 + +# This setting configures which "profile" dbt uses for this project. +profile: 'greenery' + +# These configurations specify where dbt should look for different types of files. +# The `model-paths` config, for example, states that models in this project can be +# found in the "models/" directory. You probably won't need to change these! +model-paths: ["models"] +analysis-paths: ["analyses"] +test-paths: ["tests"] +seed-paths: ["seeds"] +macro-paths: ["macros"] +snapshot-paths: ["snapshots"] + +clean-targets: # directories to be removed by `dbt clean` + - "target" + - "dbt_packages" + + +# Configuring models +# Full documentation: https://docs.getdbt.com/docs/configuring-models + +# In this example config, we tell dbt to build all models in the example/ +# directory as views. These settings can be overridden in the individual model +# files using the `{{ config(...) }}` macro. +models: + greenery: + # Config indicated by + and applies to all files under models/example/ + postgres: + +materialized: view \ No newline at end of file From 001c967092943dfac42a7c40c74f55e5e6ac7ca6 Mon Sep 17 00:00:00 2001 From: Amelia Helland Date: Fri, 15 Sep 2023 23:21:53 +0000 Subject: [PATCH 2/3] Remove comments from dbt project definition. --- greenery/dbt_project.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/greenery/dbt_project.yml b/greenery/dbt_project.yml index 67fe6ac79..62a6348b4 100644 --- a/greenery/dbt_project.yml +++ b/greenery/dbt_project.yml @@ -1,16 +1,9 @@ -# Name your project! Project names should contain only lowercase characters -# and underscores. A good package name should reflect your organization's -# name or the intended use of these models name: 'greenery' version: '1.0.1' config-version: 2 -# This setting configures which "profile" dbt uses for this project. profile: 'greenery' -# These configurations specify where dbt should look for different types of files. -# The `model-paths` config, for example, states that models in this project can be -# found in the "models/" directory. You probably won't need to change these! model-paths: ["models"] analysis-paths: ["analyses"] test-paths: ["tests"] @@ -22,15 +15,7 @@ clean-targets: # directories to be removed by `dbt clean` - "target" - "dbt_packages" - -# Configuring models -# Full documentation: https://docs.getdbt.com/docs/configuring-models - -# In this example config, we tell dbt to build all models in the example/ -# directory as views. These settings can be overridden in the individual model -# files using the `{{ config(...) }}` macro. models: greenery: - # Config indicated by + and applies to all files under models/example/ postgres: +materialized: view \ No newline at end of file From b54a7d98ccffb3666666091545ccc4d65b2071e1 Mon Sep 17 00:00:00 2001 From: Amelia Helland Date: Sat, 16 Sep 2023 19:04:16 +0000 Subject: [PATCH 3/3] Clean up comments. --- greenery/dbt_project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/greenery/dbt_project.yml b/greenery/dbt_project.yml index 62a6348b4..234aee4c6 100644 --- a/greenery/dbt_project.yml +++ b/greenery/dbt_project.yml @@ -11,7 +11,7 @@ seed-paths: ["seeds"] macro-paths: ["macros"] snapshot-paths: ["snapshots"] -clean-targets: # directories to be removed by `dbt clean` +clean-targets: # directories to be removed by `dbt clean` - "target" - "dbt_packages"