Templates
blackline.query.templates
deidentifier_marco_base = '{% macro deidentifier_marco_base(macro_name, assignment) -%}\n{{\'{% macro \'}}{{macro_name | lower}}{{\'(cls, name, value) -%}\' }}\n{{\'{% if cls.__class__.__name__ == "\'}}{{ macro_name }}{{\'"%}\'}}{{assignment}}{{\'{% endif %}\'}}\n{{\'{%- endmacro %}\'}}\n{%- endmacro %}\n'
module-attribute
layout = '{% block table required %}\n{% endblock %}\n{% block set_columns required %}\n{% endblock %}\n{% block cond required %}\n{% endblock %}\n'
module-attribute
query = '{% extends layout %}\n{% block table %}\n{{ update_statement }}\n{% endblock %}\n{% block set_columns %}\n{{ set_statement }}\n{% raw -%}\n{% for column in columns %}\n {% set value = column.name + "_value" %}\n {{ redact(cls=column.deidentifier, name=column.name, value=value) -}}\n {{ replace(cls=column.deidentifier, name=column.name, value=value) -}}\n {{ mask(cls=column.deidentifier, name=column.name, value=value) -}}\n {{ "," if not loop.last }}\n{% endfor %}\n{% endraw %}\n{% endblock %}\n{% block cond %}\n{{ where_statement }}\n{% endblock %}\n'
module-attribute