# О свойстве config

### Модели

models/\<filename>.yml

```yml

models:
  - name: <model_name>
    config:
      <model_config>: <config_value>
      ...
```

### Сиды

seeds/\<filename>.yml

```yml

seeds:
  - name: <seed_name>
    config:
      <seed_config>: <config_value>
      ...
```

### Снимки

snapshots/\<filename>.yml

```yml

snapshots:
  - name: <snapshot_name>
    config:
      <snapshot_config>: <config_value>
      ...
```

### Тесты

\<resource\_path>/\<filename>.yml

```yml

<resource_type>:
  - name: <resource_name>
    data_tests:
      - <test_name>:
          arguments: # available in v1.10.5 and higher. Older versions can set the <argument_name> as the top-level property.
            <argument_name>: <argument_value>
          config:
            <test_config>: <config-value>
            ...

    columns:
      - name: <column_name>
        data_tests:
          - <test_name>
          - <test_name>:
              arguments: # available in v1.10.5 and higher. Older versions can set the <argument_name> as the top-level property.
                <argument_name>: <argument_value>
              config:
                <test_config>: <config-value>
                ...
```

### Модульные тесты

Полезно знать

Доступно начиная с dbt v1.8 или в [канале релизов v1 Latest](https://docs.getdbt.tech/docs/dbt-versions/dbt-release-tracks.md).

(Версии dbt: v2.0 и новее)

models/\<filename>.yml

```yml
unit_tests:
  - name: <test-name>
    config:
      compute: local | remote
      enabled: true | false
      meta: {dictionary}
      static_analysis: strict | baseline | off
      tags: <string>
```

### Источники

models/\<filename>.yml

```yml

sources:
  - name: <source_name>
    config:
      <source_config>: <config_value>
    tables:
      - name: <table_name>
        config:
          <source_config>: <config_value>
```

### Метрики

models/\<filename>.yml

```yml

metrics:
  - name: <metric_name>
    config:
      enabled: true | false
      group: <string>
      meta: {dictionary}
```

### Экспозиции

models/\<filename>.yml

```yml

exposures:
  - name: <exposure_name>
    config:
      enabled: true | false
      meta: {dictionary}
```

### Семантические модели

(Версии dbt: v1.12 и новее)

models/\<filename>.yml

```yml
models:
  - name: model_name
    semantic_model:
      enabled: true | false
      group: <string>
      config:
        meta: {dictionary}
```

### Сохранённые запросы

models/\<filename>.yml

```yml

saved-queries:
  - name: <saved_query_name>
    config:
      cache: 
        enabled: true | false
      enabled: true | false
      group: <string>
      meta: {dictionary}
      schema: <string>
    exports:
      - name: <export_name>
        config:
          export_as: view | table 
          alias: <string>
          schema: <string>
```

## Определение

Свойство `config` позволяет настраивать ресурсы одновременно с определением свойств в YAML файлах.
