Comment on page
YAML tag !include
SnowDDL supports custom
!includetag in YAML configs. When parser encounters this tag, it loads specified file and uses its contents as value for YAML parameter.
It helps to store SQL or UDF code into separate files instead of putting everything inside YAML, which leads to significant improvement of developer experience by providing syntax highlighting and auto-completion.
my_view.yaml config file:
text: !include my_view.sql
SELECT id, name
- Include paths are relative to source YAML file. It is possible to "include" from the same directory or from any sub-directory relative to YAML file. Examples of valid paths:
- Loading files from parent directory or using absolute paths are not allowed due to security concerns.
!includecan be used with files of any type, including