{% load i18n sqlpreview %}{% comment %}Catalog objects. Subtabs (Databases | Schemas | Roles) keep each a clean read-only table; create/rename/alter/restore happen in the shared right drawer, drops behind an hx-confirm. `drawer` holds the open form's kind; `ctx` carries the row being acted on. Submits target #detail, so the whole panel (drawer included) re-renders and resets.{% endcomment %}

🗄 {% trans "Objects" %}

\l databases · \dn schemas · \du roles

{% include "partials/_banner.html" %}
{% for d in databases %} {% endfor %}
{% trans "Name" %} {% trans "Owner" %} {% trans "Encoding" %} {% trans "Size" %}
{{ d.name }} {{ d.owner }} {{ d.encoding }} {{ d.size|default:"—" }}
.sql ↓ .dump ↓ {% if d.name == connection.dbname %} {% trans "current" %} {% else %}
{% endif %}
{% if supports_schemas %}
{% endif %}
{% if not supports_schemas %}

{% trans "This engine has no schemas separate from databases — see the Databases tab." %}

{% elif schemas %} {% for s in schemas %} {% endfor %}
{% trans "Name" %} {% trans "Owner" %}
{{ s.name }} {{ s.owner }}
{% else %}

{% trans "No user schemas yet — create one above." %}

{% endif %}
{% for r in roles %} {% endfor %}
{% trans "Role" %} {% trans "Attributes" %}
{{ r.name }}{% if not r.can_login %} {% trans "(group)" %}{% endif %} {% for a in r.attributes %} {{ a }} {% empty %}—{% endfor %}