1. Home
  2. Docs
  3. Models
  4. Post select hook

Post select hook

With a post select hook you can run code after the select block. For example you can run UPDATE.

Update destination table #

{{ block "PRE_SELECT_HOOKS" . }}
UPDATE {{ .This }}
SET blub=14
WHERE "date2" BETWEEN '{{ .StartDate }}' and '{{ .EndDate }}'
{{end}}