Sha256: 8c0cf0432f6c5bae39892af1a2f356af77a3a0207cb8a32db4efe55321fd5913

Contents?: true

Size: 241 Bytes

Versions: 4

Compression:

Stored size: 241 Bytes

Contents

# frozen_string_literal: true

module PgEventstore
  module Commands
    # @!visibility private
    class Multiple < AbstractCommand
      def call(&blk)
        queries.transaction do
          yield
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pg_eventstore-0.2.2 lib/pg_eventstore/commands/multiple.rb
pg_eventstore-0.2.1 lib/pg_eventstore/commands/multiple.rb
pg_eventstore-0.2.0 lib/pg_eventstore/commands/multiple.rb
pg_eventstore-0.1.0 lib/pg_eventstore/commands/multiple.rb