Class: Lafcadio::ObjectStore::DbBridge::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/lafcadio/objectStore.rb

Overview

:nodoc:

Instance Method Summary collapse

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

#commitObject



662
# File 'lib/lafcadio/objectStore.rb', line 662

def commit; @db_conn.commit; end

#rollback(raise_error = true) ⇒ Object

Raises:



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