-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbt_project.yml
More file actions
35 lines (29 loc) · 1.02 KB
/
Copy pathdbt_project.yml
File metadata and controls
35 lines (29 loc) · 1.02 KB
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
name: 'oppia_analytics'
version: '1.0.0'
config-version: 2
profile: 'oppia_analytics'
model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["tests"]
seed-paths: ["seeds"]
macro-paths: ["macros"]
clean-targets:
- "target"
- "dbt_packages"
# This section dynamically routes your tables based on the target (dev vs prod)
models:
oppia_analytics:
+materialized: table
# Staging Layer configuration
# Raw server databases are configured on the source() itself, not here.
staging:
+schema: staging
+database: "{{ 'oppia-analytics-prod' if target.name == 'prod' else 'oppia-analytics-test' }}"
# Intermediate Layer: reusable transformations shared by marts
intermediate:
+schema: intermediate
+database: "{{ 'oppia-analytics-prod' if target.name == 'prod' else 'oppia-analytics-test' }}"
# Business-facing marts organized by product domain
marts:
+schema: marts
+database: "{{ 'oppia-analytics-prod' if target.name == 'prod' else 'oppia-analytics-test' }}"