Tiny DynamoDB utility for projects in TypeScript.
- get
- put
- update
- delete
- scan
- scanAll
- query
- queryWithPagination
- queryAll
- putIfNotExists (no exception is thrown even if the target already exists.)
- putIfExists (no exception is thrown even if the target does not exist.)
- transactional put
- transactional putIfNotExists
- transactional putIfExists
const pending1 = util.transactionalPut(input1);
const pending2 = util.transactionalPut(input2);
await Transaction.begin(util, pending1, pending2).commit();
TODO: will be implemented.
- @aws-sdk/client-dynamodb
- @aws-sdk/lib-dynamodb
Before running unit tests, need to set up DynamoDB local version. See docker-compose.yml and scripts/dynamodb.sh.
© Keisuke Yamamoto