class Dynflow::TransactionAdapters::Abstract

Public Instance Methods

cleanup() click to toggle source

Called on each thread after work is done. E.g. it's used to checkin ActiveRecord connections back to pool.

# File lib/dynflow/transaction_adapters/abstract.rb, line 16
def cleanup
  # override if needed
end
rollback() click to toggle source

rollback the transaction

# File lib/dynflow/transaction_adapters/abstract.rb, line 10
def rollback
  raise NotImplementedError
end
transaction(&block) click to toggle source

start transaction around block

# File lib/dynflow/transaction_adapters/abstract.rb, line 5
def transaction(&block)
  raise NotImplementedError
end