Database privileges

{% if databases %}
{% for d in databases %} {% endfor %}
Database CONNECT CREATE TEMP
{{ d.name }} {% if d.can_connect %}{% else %}·{% endif %} {% if d.can_create %}{% else %}·{% endif %} {% if d.can_temp %}{% else %}·{% endif %}
{% else %}
No database grants.
{% endif %}

Schema privileges (current database)

{% if schemas %}
{% for s in schemas %} {% endfor %}
Schema USAGE CREATE
{{ s.name }} {% if s.can_usage %}{% else %}·{% endif %} {% if s.can_create %}{% else %}·{% endif %}
{% else %}
No schema grants.
{% endif %}

Table privileges

{% if tables %}
{% for t in tables %} {% endfor %}
Table SEL INS UPD DEL TRUNC REF TRG
{{ t.schema }}.{{ t.name }} {% if t.select %}{% else %}·{% endif %} {% if t.insert %}{% else %}·{% endif %} {% if t.update %}{% else %}·{% endif %} {% if t.delete %}{% else %}·{% endif %} {% if t.truncate %}{% else %}·{% endif %} {% if t.references %}{% else %}·{% endif %} {% if t.trigger %}{% else %}·{% endif %}
{% else %}
No table grants.
{% endif %}