Class: Flor::DummySequelAdapter
- Inherits:
-
Sequel::Dataset
- Object
- Sequel::Dataset
- Flor::DummySequelAdapter
- Defined in:
- lib/flor/unit/models.rb
Defined Under Namespace
Classes: Db
Constant Summary collapse
- DB =
DJV
Sequel.connect(:adapter => Flor::DummySequelAdapter)
Instance Method Summary collapse
- #fetch_rows(sql) {|[]| ... } ⇒ Object
-
#initialize(opts) ⇒ DummySequelAdapter
constructor
A new instance of DummySequelAdapter.
- #test_connection ⇒ Object
-
#typecast_value_boolean(opts = {}) ⇒ Object
DJV add missing methods from dummy adaptor.
Constructor Details
#initialize(opts) ⇒ DummySequelAdapter
Returns a new instance of DummySequelAdapter.
12 13 14 15 16 |
# File 'lib/flor/unit/models.rb', line 12 def initialize(opts) @opts = opts @db = Db.new @cache = {} # necessary for Sequel >= 4.42.0 end |
Instance Method Details
#fetch_rows(sql) {|[]| ... } ⇒ Object
18 |
# File 'lib/flor/unit/models.rb', line 18 def fetch_rows(sql); yield([]); end |
#test_connection ⇒ Object
22 |
# File 'lib/flor/unit/models.rb', line 22 def test_connection();true;end |
#typecast_value_boolean(opts = {}) ⇒ Object
DJV add missing methods from dummy adaptor
21 |
# File 'lib/flor/unit/models.rb', line 21 def typecast_value_boolean(opts={});true;end |