Socket
Book a DemoInstallSign in
Socket

mydb-driver

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mydb-driver

`monk` superset that publishes update/findAndModify queries

latest
npmnpm
Version
0.5.2
Version published
Maintainers
1
Created
Source

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 });

FAQs

Package last updated on 17 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts