{% extends "base.html" %}{% from "_macros.html" import csrf, page_head %} {% block title %}SQL{% endblock %} {% block content %} {{ page_head("SQL console") }} {% include "_admin_nav.html" %}

Runs as the app's database user. Read mode runs in a READ ONLY transaction (any write is rejected by Postgres). Write mode needs both boxes ticked. Every statement is logged. 15 s timeout, {{ 500 }} rows max.

{{ csrf() }}

{% if error %}

{{ error }}

{% endif %} {% if info %}

{{ info }}

{% endif %} {% if columns %}
{% for c in columns %}{% endfor %} {% for r in records %}{% for v in r %}{% endfor %}{% endfor %}
{{ c }}
{{ v[:300] }}
{% endif %} {% endblock %}