Sha256: 78cde48f9a5ce130e35f52cae3e3a54c262d724eef12f1461ee2878977e54eb5
Contents?: true
Size: 907 Bytes
Versions: 15
Compression:
Stored size: 907 Bytes
Contents
module DataObjects module Mysql class Transaction < DataObjects::Transaction def finalize_transaction cmd = "XA END '#{id}'" connection.create_command(cmd).execute_non_query end def begin cmd = "XA START '#{id}'" connection.create_command(cmd).execute_non_query end def commit cmd = "XA COMMIT '#{id}'" connection.create_command(cmd).execute_non_query end def rollback finalize_transaction cmd = "XA ROLLBACK '#{id}'" connection.create_command(cmd).execute_non_query end def rollback_prepared cmd = "XA ROLLBACK '#{id}'" connection.create_command(cmd).execute_non_query end def prepare finalize_transaction cmd = "XA PREPARE '#{id}'" connection.create_command(cmd).execute_non_query end end end end
Version data entries
15 entries across 15 versions & 1 rubygems