View Source Dynamo.Page (Dynamo v0.2.0)

A page of results from query/scan.

  • :items – loaded structs
  • :last_evaluated_key – pass as start_key: to fetch the next page; nil when there is no more data
  • :count – number of items in this page
  • :scanned_count – items examined by DynamoDB before filtering
  • :consumed_capacity – present when return_consumed_capacity: was requested

Dynamo.Page implements Enumerable, so you can Enum.map(page, ...) directly.

Summary

Functions

True when another page can be fetched.

Types

t()

@type t() :: %Dynamo.Page{
  consumed_capacity: map() | nil,
  count: non_neg_integer(),
  items: [struct()],
  last_evaluated_key: map() | nil,
  scanned_count: non_neg_integer()
}

Functions

more?(page)

@spec more?(t()) :: boolean()

True when another page can be fetched.