Module: Dbviewer::DatabaseOperations
- Extended by:
- ActiveSupport::Concern
- Includes:
- ConnectionManagement, DataExport, DatabaseInformation, DatatableOperations, QueryOperations, RelationshipManagement, TableOperations
- Included in:
- ApplicationController
- Defined in:
- app/controllers/concerns/dbviewer/database_operations.rb,
app/controllers/concerns/dbviewer/database_operations/data_export.rb,
app/controllers/concerns/dbviewer/database_operations/query_operations.rb,
app/controllers/concerns/dbviewer/database_operations/table_operations.rb,
app/controllers/concerns/dbviewer/database_operations/database_information.rb,
app/controllers/concerns/dbviewer/database_operations/datatable_operations.rb,
app/controllers/concerns/dbviewer/database_operations/connection_management.rb,
app/controllers/concerns/dbviewer/database_operations/relationship_management.rb
Defined Under Namespace
Modules: ConnectionManagement, DataExport, DatabaseInformation, DatatableOperations, QueryOperations, RelationshipManagement, TableOperations
Instance Method Summary collapse
- #access_control ⇒ Object
- #database_manager ⇒ Object
- #filter_accessible_columns(table_name, columns) ⇒ Object
- #filter_accessible_tables(tables) ⇒ Object
- #table_query_operations ⇒ Object
Methods included from TableOperations
#fetch_table_columns, #fetch_table_metadata, #fetch_table_record_count, #fetch_table_records, #fetch_tables
Methods included from RelationshipManagement
#fetch_mini_erd_for_table, #fetch_table_relationships
Methods included from QueryOperations
#default_query, #execute_query, #prepare_query
Methods included from DatatableOperations
#fetch_datatable_data, #fetch_table_stats
Methods included from DatabaseInformation
#fetch_database_name, #get_adapter_name, #get_database_name
Methods included from DataExport
Methods included from ConnectionManagement
#available_connections, #current_connection_key, #switch_connection
Instance Method Details
#access_control ⇒ Object
21 22 23 |
# File 'app/controllers/concerns/dbviewer/database_operations.rb', line 21 def access_control @access_control ||= Dbviewer::Security::AccessControl.new end |
#database_manager ⇒ Object
13 14 15 |
# File 'app/controllers/concerns/dbviewer/database_operations.rb', line 13 def database_manager @database_manager = ::Dbviewer::Database::Manager.new(current_connection_key) end |
#filter_accessible_columns(table_name, columns) ⇒ Object
29 30 31 |
# File 'app/controllers/concerns/dbviewer/database_operations.rb', line 29 def filter_accessible_columns(table_name, columns) access_control.filter_accessible_columns(table_name, columns) end |
#filter_accessible_tables(tables) ⇒ Object
25 26 27 |
# File 'app/controllers/concerns/dbviewer/database_operations.rb', line 25 def filter_accessible_tables(tables) access_control.filter_accessible_tables(tables) end |
#table_query_operations ⇒ Object
17 18 19 |
# File 'app/controllers/concerns/dbviewer/database_operations.rb', line 17 def table_query_operations @table_query_operations ||= database_manager.table_query_operations end |