Sha256: c747ca56bee90562faa7507e46d45307af9a55ce9147184db0d0e3f302f21258
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true module ROM module SQL # @api private class Transaction < ::ROM::Transaction attr_reader :connection private :connection def initialize(connection) super() @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-sql-3.7.0 | lib/rom/sql/transaction.rb |