Sha256: 042ccd21621ac8517adaec9832d43bd1de904457a27687c3b153ae550c2d719a
Contents?: true
Size: 721 Bytes
Versions: 15
Compression:
Stored size: 721 Bytes
Contents
module DataObjects module Postgres class Transaction < DataObjects::Transaction def begin cmd = "BEGIN" connection.create_command(cmd).execute_non_query end def commit cmd = "COMMIT PREPARED '#{id}'" connection.create_command(cmd).execute_non_query end def rollback cmd = "ROLLBACK" connection.create_command(cmd).execute_non_query end def rollback_prepared cmd = "ROLLBACK PREPARED '#{id}'" connection.create_command(cmd).execute_non_query end def prepare cmd = "PREPARE TRANSACTION '#{id}'" connection.create_command(cmd).execute_non_query end end end end
Version data entries
15 entries across 15 versions & 1 rubygems