Sha256: 3e4949e67f507abddcbed96eb03bdfefd728dae16c5a083f1f86664f0c3cff18

Contents?: true

Size: 1.25 KB

Versions: 33

Compression:

Stored size: 1.25 KB

Contents

module Fog
  module AWS
    module SimpleDB
      class Real

        require 'fog/aws/parsers/simpledb/select'

        # 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,
            :parser             => Fog::Parsers::AWS::SimpleDB::Select.new(@nil_string)
          )
        end

      end

      class Mock

        def select(select_expression, next_token = nil)
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
fog-0.2.30 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.28 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.27 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.26 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.25 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.24 lib/fog/aws/requests/simpledb/select.rb
tecnh-fog-0.2.23.vpc lib/fog/aws/requests/simpledb/select.rb
fog-0.2.23 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.22 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.21 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.20 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.19 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.18 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.17 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.16 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.15 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.14 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.13 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.12 lib/fog/aws/requests/simpledb/select.rb
fog-0.2.11 lib/fog/aws/requests/simpledb/select.rb