Class: Tableless::DummyAdapter

Inherits:
ActiveRecord::ConnectionAdapters::AbstractAdapter
  • Object
show all
Defined in:
lib/tableless/connection_adapters/dummy_adapter.rb

Instance Method Summary collapse

Constructor Details

#initializeDummyAdapter

Returns a new instance of DummyAdapter.



5
6
7
8
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 5

def initialize(*)
  super
  @schema_cache = Tableless::SchemaCache.new
end

Instance Method Details

#db_configObject



18
19
20
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 18

def db_config(*)
  @db_config ||= OpenStruct.new(adapter: :dummy)
end

#get_schema_cacheObject



14
15
16
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 14

def get_schema_cache(*)
  @schema_cache
end

#schema_cacheObject



10
11
12
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 10

def schema_cache
  @schema_cache
end