Skip to content

JamesKyburz/lazyrethink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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