Skip to content

Instantly share code, notes, and snippets.

@kxzk
Last active December 9, 2022 23:13
Show Gist options
  • Save kxzk/fef6ba7b0e1b7977e3d01c44ae26516a to your computer and use it in GitHub Desktop.
Save kxzk/fef6ba7b0e1b7977e3d01c44ae26516a to your computer and use it in GitHub Desktop.
{#
<insert_macro_name>
<insert_description>
usage:
{{ insert_macro_name(some_value) }}
(sql) -> <insert sql generated>
{{ insert_macro_name(some_value, some_value) }}
(sql) -> <insert sql generated>
{{ insert_macro_name(arg_datatype=some_value, arg2_dataype=some_value) }}
(sql) -> <insert sql generated>
#}
{% macro insert_macro_name(arg_datatype=none, arg2_datatype=none) -%}
{% if arg_datatype is none %}
{{ exceptions.raise_compiler_error("arg_datatype is required") }}
{% endif %}
{%- if arg2_datatype is not none -%}
{%- else -%}
{%- endif -%}
{%- endmacro %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment