-
Notifications
You must be signed in to change notification settings - Fork 28
/
dbt_project.yml
37 lines (29 loc) · 1.16 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
name: 'dbt_constraints'
version: '1.0.4'
config-version: 2
# These macros depend on the results and graph objects in dbt >=0.19.0
# and has been tested with dbt >=1.0.0
# v1.0.3 adds usage of the attached_node attribute added in dbt 1.5.x
require-dbt-version: ">=1.5.0"
profile: 'dbt_constraints'
# All tests and macros in this packages are found in the macro path
macro-paths: ["macros"]
clean-targets: # directories to be removed by `dbt clean`
- "logs"
- "target"
- "dbt_packages"
# This package adds an automatic hook to create constraints
on-run-end:
- "{{ dbt_constraints.create_constraints() }}"
# Global variables
vars:
# The package can be temporarily disabled using this variable
dbt_constraints_enabled: true
# The package can also add constraints on sources if you have sufficient privileges
dbt_constraints_sources_enabled: false
# You can also be specific on which constraints are enabled for sources
# You must also enable dbt_constraints_sources_enabled above
dbt_constraints_sources_pk_enabled: true
dbt_constraints_sources_uk_enabled: true
dbt_constraints_sources_fk_enabled: true
dbt_constraints_sources_nn_enabled: true