Class: RServiceBus2::AppResourceFluidDb2
- Inherits:
-
AppResource
- Object
- AppResource
- RServiceBus2::AppResourceFluidDb2
- Defined in:
- lib/rservicebus2/appresource/fluiddb2.rb
Overview
Implementation of an AppResource - FluidDb2
Instance Attribute Summary
Attributes inherited from AppResource
Instance Method Summary collapse
-
#begin ⇒ Object
Transaction Semantics.
-
#commit ⇒ Object
Transaction Semantics.
- #connect(uri) ⇒ Object
-
#rollback ⇒ Object
Transaction Semantics.
Methods inherited from AppResource
#_connect, #finished, #get_resource, #initialize, #reconnect
Constructor Details
This class inherits a constructor from RServiceBus2::AppResource
Instance Method Details
#begin ⇒ Object
Transaction Semantics
11 12 13 |
# File 'lib/rservicebus2/appresource/fluiddb2.rb', line 11 def begin @connection.begin end |
#commit ⇒ Object
Transaction Semantics
16 17 18 |
# File 'lib/rservicebus2/appresource/fluiddb2.rb', line 16 def commit @connection.commit end |
#connect(uri) ⇒ Object
6 7 8 |
# File 'lib/rservicebus2/appresource/fluiddb2.rb', line 6 def connect(uri) FluidDb2.db(uri) end |
#rollback ⇒ Object
Transaction Semantics
21 22 23 |
# File 'lib/rservicebus2/appresource/fluiddb2.rb', line 21 def rollback @connection.rollback end |