1. Home
  2. Docs
  3. Models
  4. Pre select with hook

Pre select with hook

Page Content

With a pre select hook you can run code a WITH statement before the select block.

{{ block "PRE_SELECT_WITH_HOOKS" . }}
with abc as (SELECT 'a' as column_a, NOW()::date as date)
{{end}}