Sha256: 432505ebbaa2a1567c1fc185d8abe80d61123da12c2e4c9a3b03b8cee6349ffa

Contents?: true

Size: 1.24 KB

Versions: 14

Compression:

Stored size: 1.24 KB

Contents

unless Fog.mocking?

  module Fog
    module AWS
      class SimpleDB

        # Select item data from SimpleDB
        #
        # ==== Parameters
        # * select_expression<~String> - Expression to query domain with.
        # * next_token<~String> - Offset token to start list, defaults to nil.
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'BoxUsage'<~Float>
        #     * 'RequestId'<~String>
        #     * 'Items'<~Hash> - list of attribute name/values for the items formatted as 
        #       { 'item_name' => { 'attribute_name' => ['attribute_value'] }}
        #     * 'NextToken'<~String> - offset to start with if there are are more domains to list
        def select(select_expression, next_token = nil)
          request({
            'Action' => 'Select',
            'NextToken' => next_token,
            'SelectExpression' => select_expression
          }, Fog::Parsers::AWS::SimpleDB::Select.new(@nil_string))
        end

      end
    end
  end

else

  module Fog
    module AWS
      class SimpleDB

        def select(select_expression, next_token = nil)
          raise MockNotImplemented.new("Contributions welcome!")
        end

      end
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-0.0.56 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.55 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.54 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.53 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.52 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.51 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.50 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.49 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.48 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.47 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.46 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.45 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.44 lib/fog/aws/requests/simpledb/select.rb
fog-0.0.43 lib/fog/aws/requests/simpledb/select.rb