modella-ejdb

[ejdb](http://ejdb.org) plugin for [modella](http://github.com/modella).

npm install modella-ejdb
2 downloads in the last week
4 downloads in the last month

ejdb

ejdb plugin for modella.

Installation

npm install modella-ejdb

Example

var model = require('modella')
  , ejdb = require('modella-ejdb')
  , db = require('ejdb');

var ej = db.open('foo.db');
var User = model('User');
User.use(ejdb(ej));

User.attr('_id');
User.attr('name');
User.attr('nick');

new User()
.name('amir')
.email('yields')
.save(function(err){
  console.log(user.primary());
});

todo

  • .removeAll
  • .remove

License

MIT

npm loves you