AshDynamo.DataLayer.Query.Paginator (ash_dynamo v0.5.0)

Copy Markdown View Source

Handles DynamoDB pagination via LastEvaluatedKey and ExclusiveStartKey.

DynamoDB returns at most 1MB of data per request. When more items are available, the response includes a LastEvaluatedKey that must be passed as ExclusiveStartKey in the next request. This module encapsulates that loop, accumulating pages until the requested limit is reached or no more data is available.

Summary

Functions

Fetches items from DynamoDB, handling pagination via LastEvaluatedKey/ExclusiveStartKey.

Functions

fetch(table, mode, base_opts, limit \\ nil)

Fetches items from DynamoDB, handling pagination via LastEvaluatedKey/ExclusiveStartKey.

Returns a merged response map with the same shape as a single ExAws response: %{"Items" => [...], "Count" => N, "ScannedCount" => N}.