Module: SchemaSherlock

Defined in:
lib/schema_sherlock.rb,
lib/schema_sherlock/version.rb,
lib/schema_sherlock/file_cache.rb,
lib/schema_sherlock/binary_index.rb,
lib/schema_sherlock/model_loader.rb,
lib/schema_sherlock/schema_cache.rb,
lib/schema_sherlock/configuration.rb,
lib/schema_sherlock/usage_tracker.rb,
lib/schema_sherlock/optimized_scanner.rb,
lib/schema_sherlock/commands/base_command.rb,
lib/schema_sherlock/indexed_usage_tracker.rb,
lib/schema_sherlock/performance_optimizer.rb,
lib/schema_sherlock/analyzers/base_analyzer.rb,
lib/schema_sherlock/commands/analyze_command.rb,
lib/schema_sherlock/analyzers/foreign_key_detector.rb,
lib/schema_sherlock/analyzers/index_recommendation_detector.rb

Defined Under Namespace

Modules: Analyzers, Commands, ModelLoader Classes: BinaryIndex, Configuration, Error, FileCache, IndexedUsageTracker, OptimizedScanner, PerformanceOptimizer, SchemaCache, UsageTracker

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.configurationObject



12
13
14
# File 'lib/schema_sherlock.rb', line 12

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



8
9
10
# File 'lib/schema_sherlock.rb', line 8

def self.configure
  yield(configuration)
end

.reset_configuration!Object



16
17
18
# File 'lib/schema_sherlock.rb', line 16

def self.reset_configuration!
  @configuration = Configuration.new
end