Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.08 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.08 KB

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.

js-standard-style Greenkeeper badge build status downloads

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)

license

Apache License, Version 2.0