Sha256: eead7f3d7ff270bce659a6dcd58c75cfb19f6255227b46bb1eca08628d043cb0

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 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

3 entries across 3 versions & 1 rubygems

Version Path
rom-0.4.2 lib/rom/commands/create.rb
rom-0.4.1 lib/rom/commands/create.rb
rom-0.4.0 lib/rom/commands/create.rb