mydb monk driver
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
History.md
Makefile
README.md
index.js
package.json

README.md

mydb-driver

mydb monk driver (primarily for development)

how to use

var db = require('mydb-driver')('localhost/test');
var users = db.get('users');

users.update(id, { $set: { a: 'b' } })
users.on('op', function(id){});
// ops are published to redis for each object id in addition to the `op` event

Custom redis host/port

var db = require('mydb-driver')('localhost/test', {
  redisHost: '',
  redisPort: 6679
});

Custom redis client

var db = require('mydb-driver')('localhost/test', { redis: myRedis });