Class: Dynamodb::Api::Query
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Base
Attributes included from Relation
#attr_expression_attribute, #filter_clause, #from_clause, #index_clause, #limit_clause, #order_clause, #select_clause, #where_clause
Instance Method Summary collapse
Methods included from Relation
Methods included from Relation::QueryMethods
#filter, #from, #index, #limit, #order, #select, #where
Instance Method Details
#all ⇒ Object
8 9 10 11 12 |
# File 'lib/dynamodb/api/query.rb', line 8 def all result = Adapter.client.query(build_input) @last_evaluated_key = result.last_evaluated_key result end |
#next ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/dynamodb/api/query.rb', line 14 def next return nil if @last_evaluated_key.blank? input = build_input input[:exclusive_start_key] = @last_evaluated_key result = Adapter.client.query(input) @last_evaluated_key = result.last_evaluated_key return nil if result.count.zero? result end |