flags
The flags
variable contains true/false values for flags provided on the command line.
Example usage:
flags.sql
{% if flags.FULL_REFRESH %}drop table ...{% else %}-- no-op{% endif %}
The list of valid flags are:
flags.STRICT_MODE
: True if--strict
(or-S
) was provided on the command lineflags.FULL_REFRESH
: True if--full-refresh
was provided on the command lineflags.NON_DESTRUCTIVE
: True if--non-destructive
was provided on the command line