@valkonis/shmynamo
v4.0.2
Published
An implementation of Amazon's DynamoDB built on LevelDB
Maintainers
Readme
shmynamo
Gratefully forked from dynalite. This version only provides an in-memory implementation of dynamo for fast and somewhat accurate testing. See the original repository for caveats around accuracy (ala dynamodb local).
Goals
- Modern (typed, esm)
- Accurate
- Fast
- No IO
Example
import { db, httpHandler } from 'shmynamo';
import mitm from 'mitm';
const store = db.create()
const handler = httpHandler.bind(null, store)
const httpIntercept = mitm();
httpIntercept.on('request', handler);
const dynamoClient = DynamoDBClient();
await dynamoClient.send(new CreateTableCommand({...}))