Hooks

Learn how to run additional scripts with hooks.

What are hooks?

Hooks are simply additional SQL statements that dbt can run. This is useful when we want to run some statements that cannot be configured in a standard materialization.

There are four types of hooks:

  • on-run-start runs at the start of a dbt command.

  • on-run-end runs at the end of a dbt command.

  • ...