Sha256: 580397ed0783efbf951458f7cb56e908e232f0a2f19b867ee5b48693f8c37762
Contents?: true
Size: 391 Bytes
Versions: 35
Compression:
Stored size: 391 Bytes
Contents
module ROM module SQL # @api private class Transaction < ::ROM::Transaction attr_reader :connection private :connection def initialize(connection) @connection = connection end def run(opts = EMPTY_HASH) connection.transaction(opts) { yield(self) } rescue ::ROM::Transaction::Rollback # noop end end end end
Version data entries
35 entries across 35 versions & 1 rubygems