Class: Dbviewer::HomeController

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

Instance Method Summary collapse

Methods included from ErrorHandling

#handle_database_error, #log_error

Methods included from DatabaseOperations

#calculate_schema_size, #current_table?, #database_manager, #execute_query, #export_table_to_csv, #fetch_database_analytics, #fetch_table_columns, #fetch_table_metadata, #fetch_table_record_count, #fetch_table_records, #fetch_table_relationships, #fetch_tables_with_stats, #get_database_name, #prepare_query, #safe_quote_table_name

Instance Method Details

#indexObject



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

def index
  @tables = fetch_tables_with_stats(include_record_counts: true)
  @analytics = fetch_database_analytics
end