3.2.0 • Published 3 years ago

dynamo-iterator v3.2.0

Weekly downloads
33
License
MIT
Repository
github
Last release
3 years ago

Dynamo Iterator

A utility class to iterate Dynamo searches. When iterating, it loads results by demand, and manages batches logic.

Getting started

  • Installation npm install dynamo-iterator
  • Making a query:
import DynamoIteratorFactory from 'dynamo-iterator';

const items = DynamoIteratorFactory.query({
  TableName: 'my-table',
  KeyConditionExpression: 'id=:id',
  ExpressionAttributeValues: {'id': 'myId'}, 
});

for await (const item of items) {
  ...
}

Changelog

  • 2.0.0 Async Iterator implementation.
    • Features:
      • for await (const item of generator) { ... } form can be used
      • There is no need to precharge the generator.
    • Breaking changes:
      • Exported class is named DynamoIteratorFactory
      • DynamoIteratorFactory.preload method removed, as it is not needed.
3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

1.1.6

3 years ago

2.0.0

3 years ago

1.1.4

3 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.2

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago