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.



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

def initialize( db_conn ); @db_conn = db_conn; end

Instance Method Details

#commitObject



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

def commit; @db_conn.commit; end

#rollback(raise_error = true) ⇒ Object

Raises:



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