Sha256: 4706459a6d75bb48ef7e867d169243771da0f88974b72bc6cf57d2f5562bf915

Contents?: true

Size: 602 Bytes

Versions: 13

Compression:

Stored size: 602 Bytes

Contents

module DataObjects
  class Command

    attr_reader :connection

    # initialize creates a new Command object
    def initialize(connection, text)
      raise ArgumentError.new("+connection+ must be a DataObjects::Connection") unless DataObjects::Connection === connection
      @connection, @text = connection, text
    end

    def execute_non_query(*args)
      raise NotImplementedError.new
    end

    def execute_reader(*args)
      raise NotImplementedError.new
    end

    def set_types(column_types)
      raise NotImplementedError.new
    end

    def to_s
      @text
    end

  end

end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
data_objects-0.9.11 lib/data_objects/command.rb
data_objects-0.9.10 lib/data_objects/command.rb
data_objects-0.9.10.1 lib/data_objects/command.rb
data_objects-0.9.5 lib/data_objects/command.rb
data_objects-0.9.8 lib/data_objects/command.rb
data_objects-0.9.2 lib/data_objects/command.rb
data_objects-0.9.4 lib/data_objects/command.rb
data_objects-0.9.7 lib/data_objects/command.rb
data_objects-0.9.9 lib/data_objects/command.rb
data_objects-0.9.6 lib/data_objects/command.rb
data_objects-0.9.3 lib/data_objects/command.rb
mack-data_mapper-0.8.3 lib/gems/data_objects-0.9.10.1/lib/data_objects/command.rb
mack-data_mapper-0.8.3.1 lib/gems/data_objects-0.9.10.1/lib/data_objects/command.rb