Sha256: e5fedd135c66bc845a1fba0f501ddaeefe22c94910c7845fbf687abb626c66ec
Contents?: true
Size: 428 Bytes
Versions: 4
Compression:
Stored size: 428 Bytes
Contents
# # Handles transactions and savepoints. Can be used to simulate nested transactions. # class MonetDB class Transaction def initialize @id = 0 @savepoint = "" end def savepoint @savepoint = "monetdbsp#{@id}" end def release prev_id end def save next_id end private def next_id @id += 1 end def prev_id @id -= 1 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
monetdb-0.1.3 | lib/monetdb/transaction.rb |
monetdb-0.1.2 | lib/monetdb/transaction.rb |
monetdb-0.1.1 | lib/monetdb/transaction.rb |
monetdb-0.1.0 | lib/monetdb/transaction.rb |