Class: Pakyow::Data::Adapters::Base
- Inherits:
-
Object
- Object
- Pakyow::Data::Adapters::Base
show all
- Defined in:
- lib/pakyow/data/adapters/base.rb
Direct Known Subclasses
Sql
Defined Under Namespace
Modules: Commands, DatasetMethods, SourceExtension
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(opts, logger: nil) ⇒ Base
Returns a new instance of Base.
7
8
9
|
# File 'lib/pakyow/data/adapters/base.rb', line 7
def initialize(opts, logger: nil)
@opts, @logger = opts, logger
end
|
Class Method Details
.types_for_adapter(_adapter) ⇒ Object
32
33
|
# File 'lib/pakyow/data/adapters/base.rb', line 32
def types_for_adapter(_adapter)
end
|
Instance Method Details
#connected? ⇒ Boolean
23
24
25
|
# File 'lib/pakyow/data/adapters/base.rb', line 23
def connected?
false
end
|
#dataset_for_source(_source) ⇒ Object
11
12
13
|
# File 'lib/pakyow/data/adapters/base.rb', line 11
def dataset_for_source(_source)
raise "dataset_for_source is not implemented on #{self}"
end
|
#migratable? ⇒ Boolean
27
28
29
|
# File 'lib/pakyow/data/adapters/base.rb', line 27
def migratable?
false
end
|
#result_for_attribute_value(_attribute, _value, _source) ⇒ Object
15
16
17
|
# File 'lib/pakyow/data/adapters/base.rb', line 15
def result_for_attribute_value(_attribute, _value, _source)
raise "result_for_attribute_value is not implemented on #{self}"
end
|
#transaction ⇒ Object
19
20
21
|
# File 'lib/pakyow/data/adapters/base.rb', line 19
def transaction
raise "transactions are not supported by #{self}"
end
|