Sha256: 6dd04ca803a52affd955e6a4fbae1055e178d2d90de1089957b176ee814f9b12

Contents?: true

Size: 638 Bytes

Versions: 10

Compression:

Stored size: 638 Bytes

Contents

<a class="back" href="">&laquo;&nbsp;Back</a>

<h3>SQL Explained</h3>

<dl>
  <dt>Executed SQL</dt>
  <dd><pre><%=h query %></pre></dd>
  
  <dt>Time</dt>
  <dd><%=h "%.2f" % (time * 1_000) %>ms</dd>
</dl>

<table class="sortable">
  <thead>
    <tr>
      <% result.fetch_fields.each do |field| %>
        <th><%= field.name.upcase %></th>
      <% end %>
    </tr>
  </thead>
  <tbody>
    <% i = 1 %>
    <% result.each do |row| %>
      <tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
        <% row.each do |value| %>
          <td><%= value %></td>
        <% end %>
      </tr>
      <% i += 1 %>
    <% end %>
  </tbody>
</table>

Version data entries

10 entries across 10 versions & 5 rubygems

Version Path
jeroenvandijk-rack-bug-0.2.1 lib/rack/bug/views/panels/explain_sql.html.erb
lrd_rack_bug-0.3.0.4 lib/rack/bug/views/panels/explain_sql.html.erb
lrd_rack_bug-0.3.0.3 lib/rack/bug/views/panels/explain_sql.html.erb
lrd_rack_bug-0.3.0.2 lib/rack/bug/views/panels/explain_sql.html.erb
ghazel-rack-bug-0.3.0.3 lib/rack/bug/views/panels/explain_sql.html.erb
ghazel-rack-bug-0.3.0.2 lib/rack/bug/views/panels/explain_sql.html.erb
ghazel-rack-bug-0.3.0.1 lib/rack/bug/views/panels/explain_sql.html.erb
rack-bug-0.3.0 lib/rack/bug/views/panels/explain_sql.html.erb
wested-rack-bug-0.2.2.1 lib/rack/bug/views/panels/explain_sql.html.erb
rack-bug-0.2.1 lib/rack/bug/views/panels/explain_sql.html.erb