Class: QueryKit::Adapters::Adapter
- Inherits:
-
Object
- Object
- QueryKit::Adapters::Adapter
show all
- Defined in:
- lib/querykit/adapters/adapter.rb
Overview
Abstract adapter base class
Instance Method Summary
collapse
Instance Method Details
#begin_transaction ⇒ Object
11
12
13
|
# File 'lib/querykit/adapters/adapter.rb', line 11
def begin_transaction
raise NotImplementedError, "#{self.class} must implement #begin_transaction"
end
|
#close ⇒ Object
23
24
25
|
# File 'lib/querykit/adapters/adapter.rb', line 23
def close
end
|
#commit ⇒ Object
15
16
17
|
# File 'lib/querykit/adapters/adapter.rb', line 15
def commit
raise NotImplementedError, "#{self.class} must implement #commit"
end
|
#execute(sql, bindings = []) ⇒ Object
7
8
9
|
# File 'lib/querykit/adapters/adapter.rb', line 7
def execute(sql, bindings = [])
raise NotImplementedError, "#{self.class} must implement #execute"
end
|
#rollback ⇒ Object
19
20
21
|
# File 'lib/querykit/adapters/adapter.rb', line 19
def rollback
raise NotImplementedError, "#{self.class} must implement #rollback"
end
|