Class: Dbviewer::HomeController

Inherits:
ApplicationController show all
Defined in:
app/controllers/dbviewer/home_controller.rb

Instance Method Summary collapse

Methods included from DatabaseOperations

#database_manager, #table_query_operations

Methods included from DatatableSupport

#fetch_datatable_data

Methods included from DataExport

#export_table_to_csv

Methods included from QueryOperations

#default_query, #execute_query, #prepare_query

Methods included from RelationshipManagement

#fetch_mini_erd_for_table, #fetch_table_relationships

Methods included from TableOperations

#fetch_filtered_record_count, #fetch_table_columns, #fetch_table_metadata, #fetch_table_record_count, #fetch_table_records, #fetch_tables, #safe_quote_table_name

Methods included from DatabaseInformation

#fetch_database_analytics, #get_adapter_name, #get_database_name

Methods included from ConnectionManagement

#available_connections, #current_connection_key, #switch_connection

Instance Method Details

#indexObject



3
4
5
6
7
8
9
# File 'app/controllers/dbviewer/home_controller.rb', line 3

def index
  @current_connection_info = {
    name: get_database_name,
    adapter: get_adapter_name,
    key: current_connection_key
  }
end