{# POST /api/query — crate::pages::analytics::ui::QueryResult Either a scrollable table or an ECharts container, depending on the chart type the form asked for. `chart_option` is JSON built in Rust. #}

{{ row_count }} rows in {{ elapsed_ms }} ms{% if truncated %} (truncated){% endif %}

{% match chart_option %} {% when Some(option) %}
{% when None %}
{% for column in columns %}{% endfor %} {%- for row in rows %} {% for cell in row %}{% endfor %} {%- endfor %}
{{ column.name }}
{{ cell }}
{% endmatch %}