lazyrethink
v1.0.3
Published
lazy wrapper around rethinkdbdash
Downloads
5
Maintainers
Readme
lazyrethink
lazy wrapper around rethinkdbdash
- Doesn't create a connection pool until the first call to db. is made, requiring it with no db calls does nothing.
- Adds a release function to db if you are using this with lambda functions, or tests that wait for an empty event loop.
- You need to have installed
rethinkdbdash
this module has no dependencies.
usage
const options = undefined // rethinkdbdash options
const db = require('lazyrethink')(options)
db
.db('test')
.table('test')
.coerceTo('array')
.then(console.log)
.then(db.release)
.catch(console.error)