Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create _config-description-general.md #4447

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions website/docs/reference/model-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ title: Model configurations
description: "Read this guide to understand model configurations in dbt."
---

import ConfigResource from '/snippets/_config-description-resource.md';
import ConfigGeneral from '/snippets/_config-description-general.md';

## Related documentation
* [Models](/docs/build/models)
* [`run` command](/reference/commands/run)

## Available configurations
### Model-specific configurations

<ConfigResource />

<Tabs
groupId="config-languages"
defaultValue="project-yaml"
Expand Down Expand Up @@ -78,6 +83,8 @@ models:

### General configurations

<ConfigGeneral />

<Tabs
groupId="config-languages"
defaultValue="project-yaml"
Expand Down
1 change: 1 addition & 0 deletions website/snippets/_config-description-general.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
General configurations provide broader operational settings applicable across multiple resources. These include enabling/disabling resources, tagging, database and schema specifications, and operational settings like pre-hooks and post-hooks. These can also be set in the project file, property file, or within the resource file.
1 change: 1 addition & 0 deletions website/snippets/_config-description-resource.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Resource-specific configurations are applied to individual dbt resources, influencing their specific attributes. These settings can be defined in the project file (`dbt_project.yml`), a property file (`models/properties.yml` for models, similarly for other resources), or within the resource’s file using the `{{ config() }}` macro.