-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbt_project.yml
43 lines (37 loc) · 1.51 KB
/
dbt_project.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: 'dbt_production' # project name
version: '1.0.0'
config-version: 2
# This setting configures which "profile" dbt uses for this project. Fivetran will use your connection settings defined in the UI, making this only relevant to local development.
profile: 'dbt_production'
# 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"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_packages"
models:
dbt_production:
0_staging:
+materialized: ephemeral
1_intermediate:
+materialized: view
+schema: intermediate
2_output:
+pre-hook: "{{ my_schema_relations() }}"
+materialized: table
# +database: analytics_database
vars:
delete_from_database: {target.database}
delete_from_schema: {target.schema}
delete_from_tables: ['table_a', 'table_b', 'table_c', 'table_d']
# shopify_database: shopify_connector_database_name # this usually does not change
# shopify_schema: shopify_connector_name
# fivetran_log_database: fivetran_log_connector_database_name # this usually does not change
# fivetran_log_schema: fivetran_log_connector_name