Sha256: b3fce07d62ff7d8679cfee94772519989f1ac328f04e42b4d9aa90f0ced6be2e

Contents?: true

Size: 788 Bytes

Versions: 3

Compression:

Stored size: 788 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>
      <% if defined?(Mysql2) || defined?(PGresult) %>
        <% result.fields.each do |field| %>
          <th><%= field.upcase %></th>
        <% end %>
      <% else %>
        <% result.fetch_fields.each do |field| %>
          <th><%= field.name.upcase %></th>
        <% end %>
      <% end %>
   </tr>
  </thead>
  <tbody>
    <% i = 1 %>
    <% result.each do |row| %>
      <tr>
        <% row.each do |value| %>
          <td><%= value %></td>
        <% end %>
      </tr>
      <% i += 1 %>
    <% end %>
  </tbody>
</table>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rack-bug-rails-3-0.3.1 lib/rack/bug/views/panels/explain_sql.html.erb
rack-bug-rails-3-0.3.0 lib/rack/bug/views/panels/explain_sql.html.erb
gentooboontoo-rack-bug-0.3.0.edge lib/rack/bug/views/panels/explain_sql.html.erb