{% extends "base.html" %} {% block title %}{{ database }}{% endblock %} {% block extra_head %} {% if columns %} {% endif %} {% endblock %} {% block content %}
home{% if query %} / {{ database }}{% endif %}

{{ database }}

{% if custom_sql %}

This data as .json, .jsono

{% else %}

download {{ database }}.db

{% endif %}

Custom SQL query

{% if named_parameter_values %}

Query parameters

{% for name, value in named_parameter_values.items() %}

{% endfor %} {% endif %}

{% if truncated %}
These results were truncated. You will need to apply OFFSET/LIMIT to see the whole result set.
{% endif %} {% if rows %} {% for column in columns %}{% endfor %} {% for row in rows %} {% for td in row %} {% endfor %} {% endfor %}
{{ column }}
{{ td or " " }}
{% endif %} {% for table in tables %}

{{ table.name }}

{% for column in table.columns[:9] %}{{ column }}{% if not loop.last %}, {% endif %}{% endfor %}{% if table.columns|length > 9 %}...{% endif %}

{{ "{:,}".format(table.table_rows) }} row{% if table.table_rows == 1 %}{% else %}s{% endif %}

{% endfor %} {% if views %}

Views

{% endif %} {% endblock %}