{% extends 'base.html' %} {% block title %}HyperXQL - Query Results{% endblock %} {% block content %}

Query Results

Generated with {{ provider }} {{ model }}

New Query {% if sql and not result %}
{% endif %}
{% if sql %}
Generated SQL
{{ display_format|default('SQL') }}
{{ sql }}
Explanation

{{ explanation }}

{% endif %} {% if result %}
Query Results
{% if result.query_type == 'select' %} {{ result.row_count }} row(s) {% else %} Success {% endif %}
{% if result.query_type == 'select' %} {% if result.rows %}
{% for column in result.columns %} {% endfor %} {% for row in result.rows %} {% for cell in row %} {% endfor %} {% endfor %}
{{ column }}
{{ cell }}
{% else %}
Query executed successfully, but no results were returned.
{% endif %} {% else %}
{{ result.message }}
{% endif %}
{% if result and result.query_type == 'select' and result.rows %}
Download Results
{% endif %} {% endif %}
Next Actions
New Query Database Info {% if sql %} {% endif %}
{% endblock %} {% block scripts %} {% endblock %}