{% extends "base.html" %} {% block title %}{{ t("nav.sql") }} ยท {{ site.title }}{% endblock %} {% block content %}

{{ t("nav.sql") }}

{{ t("sql.allowed") }} {{ capabilities|join(", ") or t("sql.nothing") }} {% if allowed_tables %} {{ t("sql.tables") }} {{ allowed_tables|join(", ") }} {% endif %} {% if denied_tables %} {{ t("sql.denied") }} {{ denied_tables|join(", ") }} {% endif %} {{ t("sql.row_cap") }} {{ max_rows }}
{% if not read_only %}

{{ t("sql.warning") }}

{% endif %}
{% if error %} {% endif %} {% if result %}
{{ result.capability }} {{ tn("sql.rows", result.row_count) }} {{ t("sql.seconds", value="%.3f"|format(result.seconds)) }} {% if result.truncated %} {{ t("sql.truncated", max=max_rows) }} {% endif %}
{% if result.columns %}
{% for column in result.columns %} {% endfor %} {% for row in result.rows %} {% for cell in row %} {% endfor %} {% endfor %}
{{ column }}
{% if cell is none %}{{ t("sql.null") }}{% else %}{{ cell }}{% endif %}
{% if not result.rows %}

{{ t("sql.empty") }}

{% endif %} {% else %}

{{ tn("sql.affected", result.row_count) }}

{% endif %} {% endif %}
{% endblock %}