Found {{ tables|length }} table{{ "s" if tables|length != 1 }} in schema {{ schema }}

{% for t in tables %} {% set col_data = [] %} {% for c in t.columns %} {% set mapped = namespace(type='text') %} {% set raw = c.data_type|lower %} {% if 'int' in raw %}{% set mapped.type = 'integer' %} {% elif 'char' in raw or 'text' in raw %}{% set mapped.type = 'text' %} {% elif 'float' in raw or 'double' in raw or 'numeric' in raw or 'decimal' in raw %}{% set mapped.type = 'float' %} {% elif 'bool' in raw %}{% set mapped.type = 'boolean' %} {% elif 'timestamp' in raw %}{% set mapped.type = 'timestamp' %} {% elif 'date' in raw %}{% set mapped.type = 'date' %} {% elif 'json' in raw %}{% set mapped.type = 'json' %} {% elif 'uuid' in raw %}{% set mapped.type = 'uuid' %} {% elif 'byte' in raw or 'blob' in raw or 'binary' in raw %}{% set mapped.type = 'binary' %} {% endif %} {% set _ = col_data.append({"column_name": c.column_name, "data_type": mapped.type, "is_nullable": c.is_nullable}) %} {% endfor %} {% endfor %}
Table name Type Columns
{{ t.table_name }} {{ t.table_type }} {% if t.columns %} {{ t.columns|length }} col{{ "s" if t.columns|length != 1 }} ({{ t.columns[:4]|map(attribute='column_name')|join(', ') }}{% if t.columns|length > 4 %}, …{% endif %}) {% else %} - {% endif %}