Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jameskyburz/lazyrethink
lazy rethinkdbdash wrapper
https://github.com/jameskyburz/lazyrethink
aws-lambda javascript lazy-loading proxy rethinkdb rethinkdbdash test
Last synced: 10 days ago
JSON representation
lazy rethinkdbdash wrapper
- Host: GitHub
- URL: https://github.com/jameskyburz/lazyrethink
- Owner: JamesKyburz
- License: apache-2.0
- Created: 2018-06-18T17:49:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T21:33:50.000Z (over 3 years ago)
- Last Synced: 2024-12-20T12:12:59.338Z (29 days ago)
- Topics: aws-lambda, javascript, lazy-loading, proxy, rethinkdb, rethinkdbdash, test
- Language: JavaScript
- Homepage: https://github.com/jameskyburz/lazyrethink
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.[![js-standard-style](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/feross/standard)
[![Greenkeeper badge](https://badges.greenkeeper.io/JamesKyburz/lazyrethink.svg)](https://greenkeeper.io/)
[![build status](https://api.travis-ci.org/JamesKyburz/lazyrethink.svg)](https://travis-ci.org/JamesKyburz/lazyrethink)
[![downloads](https://img.shields.io/npm/dm/lazyrethink.svg)](https://npmjs.org/package/lazyrethink)### usage
```javascript
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](LICENSE)