1602/jugglingdb — pull request #106 by imothee (2012-08-11 07:11:13+00:00)
Title: Adds Replica Set Support to JugglingDB Mongoose Adapter

I have added a single property to the database.json object to take advantage of the replica set url format of Mongoose for Mongodb.

I am using railwayjs + juggling db in production with the Mongoose driver and a MongoDB replica set.

The change enables the addition of an rs: property with the replica set name

, "production":
{
"driver": "mongoose",
"rs": "my_replica_set",
"url": "mongodb://localhost:27017/db,mongodb://localhost:27018,mongodb://localhost:27019"
}

I am happy to discuss the format of the json object and code if this seems out of place with the rest of the project.