{% extends "_base.html" %} {% import 'tables/_macros.html' as table_macros %} {% block extra_styles %} {% endblock %} {% block body %}

SQL Query

{% if sql_params|length %}

Parameters

{% for param_name, param_value in sql_params | dictsort(by='key') %}
{% endfor %} {% endif %}
{% if error %} {% else %}

Results

{{ table_results.num_rows }} rows returned{% if truncated_results %} (truncated){% endif %}
Query execution time: {{ execution_time_ms | round(2) }}ms

Export CSV
{% for column in table_results.column_names %} {% endfor %} {% for row in table_results.to_pylist() %} {% for column in table_results.column_names %} {% endfor %} {% endfor %}
{{ column }}
{{ row[column] }}
{% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}