Class: Dbviewer::Api::QueriesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- Dbviewer::ApplicationController
- BaseController
- Dbviewer::Api::QueriesController
- Defined in:
- app/controllers/dbviewer/api/queries_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
#render_error, #render_success
Methods included from DatabaseOperations
#access_control, #database_manager, #filter_accessible_columns, #filter_accessible_tables, #table_query_operations
Methods included from DatabaseOperations::TableOperations
#fetch_table_columns, #fetch_table_metadata, #fetch_table_record_count, #fetch_table_records, #fetch_tables
Methods included from DatabaseOperations::RelationshipManagement
#fetch_mini_erd_for_table, #fetch_table_relationships
Methods included from DatabaseOperations::QueryOperations
#default_query, #execute_query, #prepare_query
Methods included from DatabaseOperations::DatatableOperations
#fetch_datatable_data, #fetch_table_stats
Methods included from DatabaseOperations::DatabaseInformation
#fetch_database_name, #get_adapter_name, #get_database_name
Methods included from DatabaseOperations::DataExport
Methods included from DatabaseOperations::ConnectionManagement
#available_connections, #current_connection_key, #switch_connection
Instance Method Details
#recent ⇒ Object
4 5 6 7 8 9 |
# File 'app/controllers/dbviewer/api/queries_controller.rb', line 4 def recent render_success({ enabled: query_logging_enabled?, queries: fetch_recent_queries }) end |