Sha256: a64ada0b5c2324cd42dce0de93fff865228595358c8b3dff40893669bf9c69e6
Contents?: true
Size: 422 Bytes
Versions: 12
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true 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
12 entries across 12 versions & 1 rubygems