Class: Rom::Dynamo::BatchGetDataset

Inherits:
Dataset
  • Object
show all
Defined in:
lib/rom/dynamo/relation.rb

Overview

Batch get using an array of key queries

{ key => val }, { key => val }, …

Constant Summary

Constants inherited from Dataset

Dataset::EmptyQuery

Instance Method Summary collapse

Methods inherited from Dataset

#batch_restrict, #delete, #index_restrict, #insert, #limit, #restrict, #reversed, #update

Instance Method Details

#each(&block) ⇒ Object

Query for records



157
158
159
# File 'lib/rom/dynamo/relation.rb', line 157

def each(&block)
  batch_get_each_item(@keys, &block)
end