{% if view == "data" %}Data{% else %}Data{% endif %} | {% if view == "structure" %}Structure{% else %}Structure{% endif %}

{% if view == "data" %} {% for col in columns %} {% endfor %} {% for row in rows %} {% for cell in row %} {% endfor %} {% endfor %}
{{ col }}
{{ cell }}
{% elif view == "structure" %}

Table: {{ table_name }}

{% if let Some(count) = row_count %}

Rows: {{ count }}

{% endif %} {% if let Some(cols) = columns_info %}
Columns {% for c in cols %} {% endfor %}
Name Type PK
{{ c.0 }} {{ c.1 }} {% if c.2 %}✓{% endif %}
{% endif %}
{% if let Some(s) = schema %}
Schema
{{ s }}
{% endif %} {% endif %}