Class: Tableless::DummyAdapter
- Inherits:
-
ActiveRecord::ConnectionAdapters::AbstractAdapter
- Object
- ActiveRecord::ConnectionAdapters::AbstractAdapter
- Tableless::DummyAdapter
- Defined in:
- lib/tableless/connection_adapters/dummy_adapter.rb
Defined Under Namespace
Classes: DbConfig
Instance Method Summary collapse
- #db_config ⇒ Object
- #get_schema_cache ⇒ Object
-
#initialize ⇒ DummyAdapter
constructor
A new instance of DummyAdapter.
- #schema_cache ⇒ Object
- #with_connection {|_self| ... } ⇒ Object
Constructor Details
#initialize ⇒ DummyAdapter
Returns a new instance of DummyAdapter.
10 11 12 13 14 |
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 10 def initialize(*) super @schema_cache = Tableless::SchemaCache.new @pool = Tableless::NullPool.new end |
Instance Method Details
#db_config ⇒ Object
24 25 26 |
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 24 def db_config(*) @db_config ||= DbConfig.new(:dummy) end |
#get_schema_cache ⇒ Object
20 21 22 |
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 20 def get_schema_cache(*) @schema_cache end |
#schema_cache ⇒ Object
16 17 18 |
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 16 def schema_cache @schema_cache end |
#with_connection {|_self| ... } ⇒ Object
28 29 30 |
# File 'lib/tableless/connection_adapters/dummy_adapter.rb', line 28 def with_connection(*) yield self end |