Sha256: 86a705627f7af1efa21c088106d880f915ad71fe93c41ff21272f9b65459716e

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

require 'rom/commands/with_options'

module ROM
  module Commands
    # Create command
    #
    # This command inserts a new tuple into a relation
    #
    # @abstract
    class Create < AbstractCommand
      include WithOptions

      # Execute the command
      #
      # @abstract
      #
      # @return [Array] an array with inserted tuples
      #
      # @api private
      def execute(_tuple)
        raise(
          NotImplementedError,
          "#{self.class}##{__method__} must be implemented"
        )
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-0.5.0 lib/rom/commands/create.rb