Last active
December 9, 2022 23:13
-
-
Save kxzk/fef6ba7b0e1b7977e3d01c44ae26516a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# | |
<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