Skip to content

Commit

Permalink
docs; openSet options
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Aug 28, 2012
1 parent f3a5bd3 commit b2b6889
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,15 @@ Connection.prototype.open = function (host, database, port, options, callback) {
* db.openSet("mongodb://user:pwd@localhost:27020/testing,mongodb://example.com:27020,mongodb://localhost:27019");
*
* The database name and/or auth need only be included in one URI.
* The `options` are passed to the internal driver connection object.
* The `options` is a hash which is passed to the internal driver connection object.
*
* Valid `options`
*
* db - passed to the connection db instance
* server - passed to the connection server instance(s)
* replset - passed to the connection ReplSetServer instance
* user - username for authentication
* pass - password for authentication
*
* @param {String} uris comma-separated mongodb:// `URI`s
* @param {String} [database] database name if not included in `uris`
Expand Down

0 comments on commit b2b6889

Please sign in to comment.