Sha256: 212346a876247f8bbd6bd5f221b77c90a9fa75d3790e44c846610c23978daf79

Contents?: true

Size: 909 Bytes

Versions: 13

Compression:

Stored size: 909 Bytes

Contents

<h1>Database connections</h1>

<table>
  <thead>
    <tr>
      <th>Key</th>
      <th>Free</th>
    </tr>
  </thead>
  <tbody>
    <%
      thread_handler = _kas.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

13 entries across 13 versions & 1 rubygems

Version Path
knjappserver-0.0.30 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.29 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.28 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.26 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.25 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.24 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.23 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.22 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.21 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.20 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.19 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.18 lib/pages/debug_database_connections.rhtml
knjappserver-0.0.17 lib/pages/debug_database_connections.rhtml