Skip to main content

dbt_project.yml Context


The following context variables and methods are available when configuring resources in the dbt_project.yml file. This applies to the models:, seeds:, and snapshots: keys in the dbt_project.yml file.

Available context variables:

Example configuration#

name: my_projectversion: 1.0.0
# Configure the models in models/facts/ to be materialized as views# in development and tables in production/CI contexts
models:  my_project:    facts:      +materialized: "{{ 'view' if == 'dev' else 'table' }}"