@repit/q-db
v0.0.1
Published
R/Q Middleware to query DynamoDB in AWS Lambda.
Downloads
6
Readme
Repit Q-Db
R/Q Middleware to query DynamoDB in AWS Lambda.
About
This module is a wrapper for @repit/lambda-query.
Installation
$ npm install @repit/q-db --saveUsage
'use strict'
const q = require('@repit/q')()
const db = require('@repit/q-db')
q(db({
// Use caching.
cache: true // Default: false
}))
q((req, res) => {
// The database object.
req.db('')
})
exports.handler = q.handlerLicense
MIT
