1.0.3 • Published 6 years ago

lazyrethink v1.0.3

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
6 years ago

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

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago