@jtviegas/dyndbstore
Version:
store facade to a database, currently only DynamoDb implementation
42 lines (28 loc) • 1.2 kB
Markdown


[](https://coveralls.io/github/jtviegas/dyndbstore?branch=master)
dyndbstore
=========
store facade to DynamoDb
## Installation
`npm install @jtviegas/dyndbstore`
## Usage
### required environment variables
- region - aws region ( not mandatory, default: eu-west-1 )
- AWS_ACCESS_KEY_ID ( mandatory )
- AWS_SECRET_ACCESS_KEY ( mandatory )
- DYNDBSTORE_TEST_ENDPOINT ( not mandatory, for testing purposes )
### code snippet example
var store = require('@jtviegas/dyndbstore');
store.getObjsCount(table, (e, r) => {
if(e)
done(e);
else {
expect(r).to.equal(0);
done(null);
}
});
## Tests
`npm test`
## Contributing
just help yourself and submit a pull request