Class: Tableless::DummyAdapter
- Inherits:
-
ActiveRecord::ConnectionAdapters::AbstractAdapter
- Object
- ActiveRecord::ConnectionAdapters::AbstractAdapter
- Tableless::DummyAdapter
- Defined in:
- lib/tableless/connection_adapters/dummy_adapter.rb
Instance Method Summary collapse
- #db_config ⇒ Object
- #get_schema_cache ⇒ Object
-
#initialize ⇒ DummyAdapter
constructor
A new instance of DummyAdapter.
- #schema_cache ⇒ Object
Constructor Details
#initialize ⇒ DummyAdapter
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_config ⇒ Object
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_cache ⇒ Object
14 15 16 |
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 14 def get_schema_cache(*) @schema_cache end |
#schema_cache ⇒ Object
10 11 12 |
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 10 def schema_cache @schema_cache end |