Sha256: 21efaf7df4ea7159daaa0d5c71cef838881f2ce52066bac7742ef31bd27a03d5

Contents?: true

Size: 1.31 KB

Versions: 42

Compression:

Stored size: 1.31 KB

Contents

<h3>SQL Queries</h3>
<table class="sortable">
<thead>
  <tr>
    <th class="time">Time&nbsp;(ms)</th>
    <th class="query">Query</th>
    <th class="backtrace"></th>
    <th class="actions"></th>
  </tr>
</thead>
<tbody>
  <% i = 1 %>
  <% queries.each do |query| %>
    <tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
      <td><%= query.human_time %></td>
      <td class="syntax"><%= query.sql %></td>
      <td>
        <% if query.has_backtrace? %>
          <a href="#" class="reveal_backtrace">Show Backtrace</a>
        <% end %>
      </td>
      <td>
        <% if query.inspectable? %>
          <a href="/__insight__/sql/execute?<%= signed_params("query" => query.sql, "time" => query.time) %>" class="remote_call">SELECT</a> |
          <a href="/__insight__/sql/explain?<%= signed_params("query" => query.sql, "time" => query.time) %>" class="remote_call">EXPLAIN</a> |
          <a href="/__insight__/sql/profile?<%= signed_params("query" => query.sql, "time" => query.time) %>" class="remote_call">Profile</a>
        <% end %>
      </td>
    </tr>
    <tr style="display:none">
      <td></td>
      <td colspan="3">
        <ul>
          <% query.filtered_backtrace.each do |line| %>
            <li><%=h line %></li>
          <% end %>
        </ul>
      </td>
    </tr>
    <% i += 1 %>
  <% end %>
</tbody>
</table>

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
rack-insight-0.5.13 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.12 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.11 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.10 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.9 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.8 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.7 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.6 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.5 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.4 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.3 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.2 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.1 lib/rack/insight/views/panels/sql.html.erb
rack-insight-0.5.0 lib/rack/insight/views/panels/sql.html.erb
logical-insight-0.4.7 lib/insight/views/panels/sql.html.erb
logical-insight-0.4.6 lib/insight/views/panels/sql.html.erb
logical-insight-0.4.5 lib/insight/views/panels/sql.html.erb
logical-insight-0.4.4 lib/insight/views/panels/sql.html.erb
logical-insight-0.4.3 lib/insight/views/panels/sql.html.erb
logical-insight-0.4.2 lib/insight/views/panels/sql.html.erb