Class: MonetDBTransaction
- Inherits:
-
Object
- Object
- MonetDBTransaction
- Defined in:
- lib/MonetDBConnection.rb
Overview
handles transactions and savepoints. Can be used to simulate nested transactions.
Instance Method Summary collapse
-
#initialize ⇒ MonetDBTransaction
constructor
A new instance of MonetDBTransaction.
- #release ⇒ Object
- #save ⇒ Object
- #savepoint ⇒ Object
Constructor Details
#initialize ⇒ MonetDBTransaction
Returns a new instance of MonetDBTransaction.
524 525 526 527 |
# File 'lib/MonetDBConnection.rb', line 524 def initialize @id = 0 @savepoint = "" end |
Instance Method Details
#release ⇒ Object
533 534 535 |
# File 'lib/MonetDBConnection.rb', line 533 def release prev_id end |
#save ⇒ Object
537 538 539 |
# File 'lib/MonetDBConnection.rb', line 537 def save next_id end |
#savepoint ⇒ Object
529 530 531 |
# File 'lib/MonetDBConnection.rb', line 529 def savepoint @savepoint = "monetdbsp" + @id.to_s end |