Sha256: ff8e5780277f5e5def7b142cfe4daacd732ef7197279f324860a8871dfbc69b9

Contents?: true

Size: 642 Bytes

Versions: 42

Compression:

Stored size: 642 Bytes

Contents

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

<h3>SQL Results</h3>

<dl>
  <dt>Executed SQL</dt>
  <dd><pre><%=h query.sql %></pre></dd>

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

<table class="sortable">
  <thead>
    <tr>
      <% query.column_names.each do |field| %>
        <th><%= field.upcase %></th>
      <% end %>
    </tr>
  </thead>
  <tbody>
    <% i = 1 %>
    <% query.rows.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

42 entries across 42 versions & 2 rubygems

Version Path
logical-insight-0.4.1 lib/insight/views/panels/execute_sql.html.erb
logical-insight-0.4.0 lib/insight/views/panels/execute_sql.html.erb