{% macro list_databases(sqla) %}

Databases of {{sqla.db.get_app().name}}

{{ card_tools(self) }}
{% for bind_key, connector in sqla.connectors.items() %} {% if gateway %} {% set sqliteui_url = gateway.url('/db/'~bind_key) if '/db/'~bind_key in config.DEFAULT_APPS else '#' %} {% endif %} {% endfor %}
Bind Key DATABASE_URI Tables
{{bind_key}} {{connector.get_uri()}} {%for t in connector.get_engine().table_names()%} {{t}} {% if not loop.last %},{%endif%} {% endfor %}
{%endmacro%}