Skip to content

Commit

Permalink
Merge branch 'current' into issue-3460
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Dec 5, 2024
2 parents 94de598 + de75b6c commit 18383bf
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions website/docs/docs/build/hooks-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ Hooks are snippets of SQL that are executed at different times:

Hooks are a more-advanced capability that enable you to run custom SQL, and leverage database-specific actions, beyond what dbt makes available out-of-the-box with standard materializations and configurations.

<Snippet path="hooks-to-grants" />

If (and only if) you can't leverage the [`grants` resource-config](/reference/resource-configs/grants), you can use `post-hook` to perform more advanced workflows:

* Need to apply `grants` in a more complex way, which the dbt Core `grants` config doesn't (yet) support.
Expand Down
2 changes: 0 additions & 2 deletions website/docs/reference/dbt-jinja-functions/this.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ meta:

## Examples

<Snippet path="hooks-to-grants" />

### Configuring incremental models

<File name='models/stg_events.sql'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ A SQL statement (or list of SQL statements) to be run at the start or end of the

## Examples

<Snippet path="hooks-to-grants" />

### Grant privileges on all schemas that dbt uses at the end of a run
This leverages the [schemas](/reference/dbt-jinja-functions/schemas) variable that is only available in an `on-run-end` hook.

Expand Down
2 changes: 0 additions & 2 deletions website/docs/reference/resource-configs/pre-hook-post-hook.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ import SQLCompilationError from '/snippets/_render-method.md';

## Examples

<Snippet path="hooks-to-grants" />

### [Redshift] Unload one model to S3

<File name='model.sql'>
Expand Down
3 changes: 0 additions & 3 deletions website/snippets/hooks-to-grants.md

This file was deleted.

0 comments on commit 18383bf

Please sign in to comment.