Module: Dbviewer
- Defined in:
- lib/dbviewer.rb,
lib/dbviewer/engine.rb,
lib/dbviewer/version.rb,
lib/dbviewer/query/logger.rb,
lib/dbviewer/query/parser.rb,
lib/dbviewer/storage/base.rb,
lib/dbviewer/configuration.rb,
lib/dbviewer/validator/sql.rb,
lib/dbviewer/query/analyzer.rb,
lib/dbviewer/query/executor.rb,
lib/dbviewer/database/manager.rb,
app/helpers/dbviewer/ui_helper.rb,
app/jobs/dbviewer/application_job.rb,
lib/dbviewer/storage/file_storage.rb,
app/helpers/dbviewer/filter_helper.rb,
app/helpers/dbviewer/sorting_helper.rb,
lib/dbviewer/database/cache_manager.rb,
lib/dbviewer/datatable/query_params.rb,
app/helpers/dbviewer/database_helper.rb,
app/helpers/dbviewer/formatting_helper.rb,
app/helpers/dbviewer/navigation_helper.rb,
app/helpers/dbviewer/pagination_helper.rb,
app/models/dbviewer/application_record.rb,
lib/dbviewer/database/metadata_manager.rb,
lib/dbviewer/storage/in_memory_storage.rb,
app/helpers/dbviewer/application_helper.rb,
app/mailers/dbviewer/application_mailer.rb,
lib/dbviewer/datatable/query_operations.rb,
app/controllers/dbviewer/home_controller.rb,
app/controllers/dbviewer/logs_controller.rb,
lib/generators/dbviewer/install_generator.rb,
app/controllers/dbviewer/tables_controller.rb,
lib/dbviewer/query/notification_subscriber.rb,
app/helpers/dbviewer/table_rendering_helper.rb,
lib/dbviewer/database/dynamic_model_factory.rb,
app/controllers/dbviewer/api/base_controller.rb,
app/controllers/concerns/dbviewer/data_export.rb,
app/controllers/dbviewer/api/tables_controller.rb,
app/controllers/dbviewer/api/queries_controller.rb,
app/controllers/dbviewer/application_controller.rb,
app/controllers/dbviewer/connections_controller.rb,
app/controllers/dbviewer/api/database_controller.rb,
app/controllers/concerns/dbviewer/query_operations.rb,
app/controllers/concerns/dbviewer/table_operations.rb,
app/controllers/concerns/dbviewer/datatable_support.rb,
app/controllers/concerns/dbviewer/pagination_concern.rb,
app/controllers/concerns/dbviewer/database_operations.rb,
app/controllers/concerns/dbviewer/database_information.rb,
app/controllers/concerns/dbviewer/connection_management.rb,
app/controllers/concerns/dbviewer/relationship_management.rb,
app/controllers/dbviewer/entity_relationship_diagrams_controller.rb,
app/controllers/dbviewer/api/entity_relationship_diagrams_controller.rb
Defined Under Namespace
Modules: Api, ApplicationHelper, ConnectionManagement, DataExport, Database, DatabaseHelper, DatabaseInformation, DatabaseOperations, Datatable, DatatableSupport, FilterHelper, FormattingHelper, Generators, NavigationHelper, PaginationConcern, PaginationHelper, Query, QueryOperations, RelationshipManagement, SortingHelper, Storage, TableOperations, TableRenderingHelper, UiHelper, Validator Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Configuration, ConnectionsController, Engine, EntityRelationshipDiagramsController, HomeController, LogsController, TablesController
Constant Summary collapse
- VERSION =
"0.7.1"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Get configuration settings.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Configure the engine with a block.
-
.reset_configuration ⇒ Object
Reset configuration to defaults.
-
.setup ⇒ Object
This class method will be called by the engine when it’s appropriate.
Class Attribute Details
.configuration ⇒ Object
Get configuration settings
32 33 34 |
# File 'lib/dbviewer.rb', line 32 def configuration @configuration ||= Configuration.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Configure the engine with a block
43 44 45 |
# File 'lib/dbviewer.rb', line 43 def configure yield(configuration) if block_given? end |
.reset_configuration ⇒ Object
Reset configuration to defaults
48 49 50 |
# File 'lib/dbviewer.rb', line 48 def reset_configuration @configuration = Configuration.new end |
.setup ⇒ Object
This class method will be called by the engine when it’s appropriate
53 54 55 56 |
# File 'lib/dbviewer.rb', line 53 def setup configure_query_logger validate_database_connections end |