Class: Lafcadio::ObjectStore::DbBridge::Transaction
- Inherits:
-
Object
- Object
- Lafcadio::ObjectStore::DbBridge::Transaction
- Defined in:
- lib/lafcadio/objectStore.rb
Overview
:nodoc:
Instance Method Summary collapse
- #commit ⇒ Object
-
#initialize(db_conn) ⇒ Transaction
constructor
A new instance of Transaction.
- #rollback(raise_error = true) ⇒ Object
Constructor Details
#initialize(db_conn) ⇒ Transaction
Returns a new instance of Transaction.
660 |
# File 'lib/lafcadio/objectStore.rb', line 660 def initialize( db_conn ); @db_conn = db_conn; end |
Instance Method Details
#commit ⇒ Object
662 |
# File 'lib/lafcadio/objectStore.rb', line 662 def commit; @db_conn.commit; end |
#rollback(raise_error = true) ⇒ Object
664 665 666 667 |
# File 'lib/lafcadio/objectStore.rb', line 664 def rollback( raise_error = true ) @db_conn.rollback raise RollbackError if raise_error end |