Class: RServiceBus2::AppResourceFluidDb
- Inherits:
-
AppResource
- Object
- AppResource
- RServiceBus2::AppResourceFluidDb
- Defined in:
- lib/rservicebus2/appresource/fluiddb.rb
Overview
Implementation of an AppResource - FluidDb
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
10 11 12 |
# File 'lib/rservicebus2/appresource/fluiddb.rb', line 10 def begin @connection.begin end |
#commit ⇒ Object
Transaction Semantics
15 16 17 |
# File 'lib/rservicebus2/appresource/fluiddb.rb', line 15 def commit @connection.commit end |
#connect(uri) ⇒ Object
5 6 7 |
# File 'lib/rservicebus2/appresource/fluiddb.rb', line 5 def connect(uri) FluidDb::Db(uri) end |
#rollback ⇒ Object
Transaction Semantics
20 21 22 |
# File 'lib/rservicebus2/appresource/fluiddb.rb', line 20 def rollback @connection.rollback end |