Skip to content

runk/dynamo-table-extensions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynamo-table-extensions

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.

About

Adds higher-level methods to dynamo-table

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%