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.
693 |
# File 'lib/lafcadio/objectStore.rb', line 693 def initialize( db_conn ); @db_conn = db_conn; end |
Instance Method Details
#commit ⇒ Object
695 |
# File 'lib/lafcadio/objectStore.rb', line 695 def commit; @db_conn.commit; end |
#rollback(raise_error = true) ⇒ Object
697 698 699 700 |
# File 'lib/lafcadio/objectStore.rb', line 697 def rollback( raise_error = true ) @db_conn.rollback raise RollbackError if raise_error end |