Skip to content

Commit

Permalink
Update saved-queries.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Sep 19, 2024
1 parent 9c92bbb commit 500614b
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions website/docs/docs/build/saved-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,26 +124,6 @@ filter: |

</VersionBlock>

<VersionBlock firstVersion="1.7">

#### Project-level saved queries

To enable saved queries at the project level, you can set the `saved-queries` configuration in the [`dbt_project.yml` file](/reference/dbt_project.yml). This saves you time in configuring saved queries in each file:

<File name='dbt_project.yml'>

```yaml
saved-queries:
my_saved_query:
config:
+cache:
enabled: true
```
</File>

For more information on `dbt_project.yml` and config naming conventions, see the [dbt_project.yml reference page](/reference/dbt_project.yml#naming-convention).
</VersionBlock>

<!-- For versions 1.7 and lower-->
<VersionBlock lastVersion="1.7">

Expand Down Expand Up @@ -174,6 +154,26 @@ saved_queries:
</File>
</VersionBlock>

<VersionBlock firstVersion="1.7">

#### Project-level saved queries

To enable saved queries at the project level, you can set the `saved-queries` configuration in the [`dbt_project.yml` file](/reference/dbt_project.yml). This saves you time in configuring saved queries in each file:

<File name='dbt_project.yml'>

```yaml
saved-queries:
my_saved_query:
config:
+cache:
enabled: true
```
</File>

For more information on `dbt_project.yml` and config naming conventions, see the [dbt_project.yml reference page](/reference/dbt_project.yml#naming-convention).
</VersionBlock>

To build `saved_queries`, use the [`--resource-type` flag](/reference/global-configs/resource-type) and run the command `dbt build --resource-type saved_query`.

## Configure exports
Expand Down

0 comments on commit 500614b

Please sign in to comment.