0.1.1 • Published 5 years ago

@deptno/dynamodb v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

@deptno/dynamodb

npm i @deptno/dynamodb

log

if you want to check detail logs

DEBUG=@deptno/dynamodb node [your program]
import {createDynamoDB} from '@deptno/dynamodb'

const ddb = createDynamoDB(documnetClient)

ddb.scan<ReturnSchema>({
  TableName: '...',
  Limit: 300,
  ReturnConsumedCapacity: 'TOTAL'
})
{
  Items: [...],
  Count: 300,
  ScannedCount: 300,
  LastEvaluatedKey: {...},
  ConsumedCapacity: { TableName: '...', CapacityUnits: 22 }
} +19

api

  • raw DynamoDBClient
  • batchWrite write unlimited items
  • batchGet get unlimited items
  • scanAll recursive scan until end of items
  • scanAllSegmented same as scanAll but works with segmented
  • queryAll recursive query until end of items
  • util
    • js2ddbDoc normalize dynamodb document (eg. strip empty string property)
    • createToken tokenizer
    • parseToken token to json
    • gzip typed gzip json
    • unGzip typed unGzip json
    • createKey typed key and parser (eg. world#2019-11-01 -> {hello: string, createdAt: Date})

changelog

license

MIT

0.1.1

5 years ago

0.1.0

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago