rem

remodel

Generator-based query interface for rethinkdb.

Showing:

Popularity

Downloads/wk

4

Maintenance

No Maintenance Data Available

Package

Dependencies

2

Size (min+gzip)

39.8KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Remodel

Generator-based Models for rethinkdb.

A simple wrapper around the excellent rethinkdb, with generator support.

Installation

$ npm install remodel

Example

var remodel = require('remodel');
var reql = require('reql-then')({
  host: 'localhost',
  port: 28015,
  db: 'test',
  maxPoolSize: 10
});

// 'Users' here is the name of your table
var User = remodel(reql, 'Users');

User.findByEmail = function *(email) {
  return yield User.findOne(this.r.filter({email: email}));
}

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial