Module: Dbviewer::DatabaseOperations
- Extended by:
- ActiveSupport::Concern
- Includes:
- ConnectionManagement, DataExport, DatabaseInformation, DatatableSupport, QueryOperations, RelationshipManagement, TableOperations
- Included in:
- ApplicationController
- Defined in:
- app/controllers/concerns/dbviewer/database_operations.rb
Instance Method Summary collapse
-
#database_manager ⇒ Object
Initialize the database manager with the current connection.
-
#table_query_operations ⇒ Object
Initialize the table query operations manager This gives direct access to table query operations when needed.
Methods included from DatatableSupport
Methods included from DataExport
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
#database_manager ⇒ Object
Initialize the database manager with the current connection
16 17 18 |
# File 'app/controllers/concerns/dbviewer/database_operations.rb', line 16 def database_manager @database_manager = ::Dbviewer::Database::Manager.new(current_connection_key) end |
#table_query_operations ⇒ Object
Initialize the table query operations manager This gives direct access to table query operations when needed
22 23 24 |
# File 'app/controllers/concerns/dbviewer/database_operations.rb', line 22 def table_query_operations @table_query_operations ||= database_manager.table_query_operations end |