{% load i18n dbvalue humanize %}{% if empty %}

{% trans "Enter a query and hit Run." %}

{% else %} {% if notice %}
{{ notice }}
{% endif %} {% if error %}

{% trans "Query error" %}

{{ error }}

{% else %}
{% if result.columns %} {% blocktrans count c=result.rowcount with n=result.rowcount|intcomma %}{{ n }} row returned{% plural %}{{ n }} rows returned{% endblocktrans %} {% elif wrote %} {% blocktrans count c=result.rowcount with n=result.rowcount|intcomma %}{{ n }} row affected · committed{% plural %}{{ n }} rows affected · committed{% endblocktrans %} {% else %} {% trans "statement executed" %} {% endif %} ·{% blocktrans with ms=result.duration_ms %}ran in {{ ms }} ms{% endblocktrans %} {% if result.truncated %} ·{% blocktrans with n=result.rowcount|intcomma %}capped at {{ n }} — add a LIMIT to see more, or export below for all rows{% endblocktrans %} {% endif %} {% if result.columns and sql %} ·
{% csrf_token %} {% trans "Export" %}
{% endif %}
{% if result.columns %}
{% for c in result.columns %} {% endfor %} {% for row in rows %} {% for v in row %} {% endfor %} {% empty %} {% endfor %}
{{ c }}
{{ v|cell }}
{% trans "The query ran fine, but matched no rows." %}
{% endif %} {% endif %}{# error #} {% endif %}{# empty #}