From e9271bf69ab50cb24e38ac2205847c8d32b83ca8 Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Mon, 6 Oct 2008 13:07:56 -0700 Subject: Just like EXPLAIN, adding the output of straight SELECT statements so you can view the raw SQL output. --- .../templates/debug_toolbar/panels/sql.html | 1 + .../templates/debug_toolbar/panels/sql_select.html | 30 ++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 debug_toolbar/templates/debug_toolbar/panels/sql_select.html (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 6a2d077..2abb68f 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -13,6 +13,7 @@ {{ query.time|floatformat:"4" }} {% if query.params %} + SELECT EXPLAIN {% endif %} diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql_select.html b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html new file mode 100644 index 0000000..73109ef --- /dev/null +++ b/debug_toolbar/templates/debug_toolbar/panels/sql_select.html @@ -0,0 +1,30 @@ +« Back +

SQL Selected

+
+
Executed SQL
+
{{ sql|safe }}
+
Time
+
{{ time }} ms
+
+{% if result %} + + + + {% for h in headers %} + + {% endfor %} + + + + {% for row in result %} + + {% for column in row %} + + {% endfor %} + + {% endfor %} + +
{{ h|upper }}
{{ column|escape }}
+{% else %} +

Empty set

+{% endif %} -- cgit v1.2.3