Sha256: 0e29e728128402278bd9fe6e69367ef32a8667492d15f956465b694f43ff0313

Contents?: true

Size: 908 Bytes

Versions: 25

Compression:

Stored size: 908 Bytes

Contents

<h1>Database connections</h1>

<table>
  <thead>
    <tr>
      <th>Key</th>
      <th>Free</th>
    </tr>
  </thead>
  <tbody>
    <%
      thread_handler = _hb.db_handler.conns
      if !thread_handler.is_a?(Knj::Threadhandler)
        print "A threadhandler has not been spawned for this instance."
        exit
      end
      
      objects = thread_handler.objects.clone
      
      objects.each_index do |key|
        val = objects[key]
        
        %>
          <tr>
            <td>
              <%=key%>
            </td>
            <td>
              <%=Knj::Strings.yn_str(val[:free])%>
            </td>
          </tr>
        <%
      end
      
      if objects.empty?
        %>
          <tr>
            <td colspan="2">
              Thread handler was spawned but no active connections was spawned?
            </td>
          </tr>
        <%
      end
    %>
  </tbody>
</table>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hayabusa-0.0.30 pages/debug_database_connections.rhtml
hayabusa-0.0.28 pages/debug_database_connections.rhtml
hayabusa-0.0.25 pages/debug_database_connections.rhtml
hayabusa-0.0.24 pages/debug_database_connections.rhtml
hayabusa-0.0.23 pages/debug_database_connections.rhtml
hayabusa-0.0.22 pages/debug_database_connections.rhtml
hayabusa-0.0.20 pages/debug_database_connections.rhtml
hayabusa-0.0.19 pages/debug_database_connections.rhtml
hayabusa-0.0.18 pages/debug_database_connections.rhtml
hayabusa-0.0.17 pages/debug_database_connections.rhtml
hayabusa-0.0.16 pages/debug_database_connections.rhtml
hayabusa-0.0.15 pages/debug_database_connections.rhtml
hayabusa-0.0.14 pages/debug_database_connections.rhtml
hayabusa-0.0.13 pages/debug_database_connections.rhtml
hayabusa-0.0.12 pages/debug_database_connections.rhtml
hayabusa-0.0.11 pages/debug_database_connections.rhtml
hayabusa-0.0.10 pages/debug_database_connections.rhtml
hayabusa-0.0.9 pages/debug_database_connections.rhtml
hayabusa-0.0.8 pages/debug_database_connections.rhtml
hayabusa-0.0.6 pages/debug_database_connections.rhtml