1.3.1 • Published 4 months ago

dynamo-table-extensions v1.3.1

Weekly downloads
1,116
License
MIT
Repository
github
Last release
4 months ago

dynamo-table-extensions

npm version Build Status

Adds higher-level methods to dynamo-table.

Extended API

throttledBatchWrite(capacityRatio, items, callback)

Batch writes items ensuring that at most a fraction of the table's write capacity corresponding to capacityRatio is used.

truncate(callback)

Truncates table

addNew(record, callback)

Adds new record to the table. If record[key] is defined then the method does put straight away. Otherwise it assigns new id and puts it to the table. Table key must be numeric. Assumes that this.nextId (from dynamo-table-id package) is available.

Thanks

Thanks to @mhart for dynamo-table upon which this extension is based.

1.3.1

4 months ago

1.3.0

7 months ago

1.2.0

2 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago

0.2.1

4 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago