Thanks to visit codestin.com
Credit goes to github.com

Skip to content

skyhookadventure/dynamodb-empty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DynamoDB Empty

Built with typescript version dependants license

Empty a small Dynamo DB table without deleting it.

Why

When you're running tests with small amounts of data, it's much faster to wipe a Dynamo DB table than delete/recreate it.

Do not use with large amounts of data. It's much cheaper to delete/recreate the table, as this module will incur a read & write cost for every item in your table (under the hood it scans all items and then deletes one at a time).

Important

This is for use on small tables only, in testing environments. For large tables it is much more efficient to delete and re-create the entire table.

Use

Install globally

yarn global add dynamodb-empty

Or:

npm install -g dynamodb-empty

Run on a table

dynamodb-empty --table tableName

Checklist

CD Feature Provided
Typescript
Linting (AirBnB + Prettier)
Unit tests (Jest)
Coverage check (ideally 100% with Jest)
Github Continuous Deployment

Built by Skyhook

This module is contributed by the team at Skyhook.

About

Quickly empty a DynamoDB table

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published