<%= title "Database - #{@connection.name}" %>
Connection
<%=h @connection.name %>
<%=h @connection.adapter %>
<%=h @connection.database %>
<%=h @connection.host %>
<%=h @connection.username %>
<%= render :partial => "queries" %>
<%= h @connection.status rescue $!.to_s  %>
<%=h @connection.variables_text rescue $!.to_s  %>
<%= @connection.activerecord_connection.tables.map{|t| h(t)}.join("
") %>
<%= button_to 'Edit connection', :action => 'edit', :id => @connection %> <%= button_to 'List all connections', :action => 'list' %> <%= button_to 'Manually execute', :action => 'manually_execute', :id => @connection %>