| 1 |
<table class="flDebugTablesorter"> |
| 2 |
<thead> |
| 3 |
<tr> |
| 4 |
<th> (ms)</th> |
| 5 |
<th>Action</th> |
| 6 |
<th>Context</th> |
| 7 |
<th>Query</th> |
| 8 |
</tr> |
| 9 |
</thead> |
| 10 |
<tbody> |
| 11 |
{% for query in queries %} |
| 12 |
<tr class="{{ loop.cycle('flDebugOdd', 'flDebugEven') }}"> |
| 13 |
<td>{{ '%.4f'|format(query.duration * 1000) }}</td> |
| 14 |
<td> |
| 15 |
{% if query.signed_query %} |
| 16 |
<a class="flDebugRemoteCall" href="{{ url_for('debugtoolbar.sql_select', explain=False, query=query.signed_query, duration=query.duration )}}">SELECT</a><br /> |
| 17 |
<a class="flDebugRemoteCall" href="{{ url_for('debugtoolbar.sql_select', explain=True, query=query.signed_query, duration=query.duration )}}">EXPLAIN</a><br /> |
| 18 |
{% endif %} |
| 19 |
</td> |
| 20 |
<td title="{{ query.location_long }}"> |
| 21 |
{{ query.location }} |
| 22 |
</td> |
| 23 |
<td class="flDebugSyntax"> |
| 24 |
<div class="flDebugSqlWrap"> |
| 25 |
<div class="flDebugSql">{{ query.sql }}</div> |
| 26 |
</div> |
| 27 |
</td> |
| 28 |
</tr> |
| 29 |
{% endfor %} |
| 30 |
</tbody> |
| 31 |
</table> |