0.2.3 • Published 11 years ago

pongo v0.2.3

Weekly downloads
22
License
-
Repository
github
Last release
11 years ago

pongo

Connection pooling for node-mongodb-native.
No more sockets are opened, as defined in the server.poolSize option.

####Requirements node-mongodb-native

####Example var pongo = new Pongo({ // list of valid server options: // http://mongodb.github.com/node-mongodb-native/api-generated/server.html?highlight=server#server server: { poolSize: 3 },

    // list of valid db options:
    // http://mongodb.github.com/node-mongodb-native/api-generated/db.html?highlight=db#db
    db: {
        w: 1
    }
});

pongo.connect('myMongoDb', function (err, db) {
  // use the db instance as you would with the https://github.com/mongodb/node-mongodb-native driver.
});

pongo.connect('myOtherMongoDb', function (err, db) {
  // use the db instance as you would with the https://github.com/mongodb/node-mongodb-native driver.
});

####License MIT

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.0

11 years ago