npm install modella-ejdb
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')
.nick('yields')
.save(function(err){
console.log(user.primary());
});
$ make test
.removeAll
.remove
MIT