mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
40 lines
1.2 KiB
Ruby
40 lines
1.2 KiB
Ruby
module Fog
|
|
module AWS
|
|
module SimpleDB
|
|
class Real
|
|
|
|
# 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
|