dynamodb-adapter
A library that implements the Write Model Adapter interface for storing events on dynamodb.
Here's an example of the table config in CloudFormation syntax:
Methods
build
build({ entityName }, { tableName, indexName, ...awsOptions )
builds a write model adapter
Parameters
attribute
type
description
entityName
string
the name of the entity
tableName
string
the name of the dynamodb table
indexName
string
the name of the index sorting commits by commitId
...awsOptions
object
any additional arguments are passed along to AWS, like so:new AWS.DynamoDB(awsOptions)
Returns
an object with write model methods
Example
adapter.js
Last updated