Skip to content

Commit

Permalink
Merge pull request #405 from dhendo/master
Browse files Browse the repository at this point in the history
Server Options / DB Options Docs
  • Loading branch information
christkv committed Nov 14, 2011
2 parents c1bd406 + 4a50e60 commit f730d8e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ Several options can be passed to the `Server` constructor with `options` paramet

* `auto_reconnect` - to reconnect automatically, `default:false`
* `poolSize` - specify the number of connections in the pool `default:1`
* `retryMiliSeconds` - specify the number of milliseconds between connection attempts `default:5000`
* `numberOfRetries` - specify the number of retries for connection attempts `default:3`
* `reaperInterval` - specify the number of milliseconds between each reaper attempt `default:1000`
* `reaperTimeout` - specify the number of milliseconds for timing out callbacks that don't return `default:30000`
* `raw` - driver expects Buffer raw bson document, `default:false`



## DB options

Expand All @@ -35,6 +30,12 @@ Several options can be passed to the `Db` constructor with `options` parameter.
* `strict` - sets *strict mode*, if true then existing collections can't be "recreated" etc.
* `pk` - custom primary key factory to generate `_id` values (see Custom primary keys).
* `forceServerObjectId` - generation of objectid is delegated to the mongodb server instead of the driver. default is false
* `retryMiliSeconds` - specify the number of milliseconds between connection attempts `default:5000`
* `numberOfRetries` - specify the number of retries for connection attempts `default:3`
* `reaperInterval` - specify the number of milliseconds between each reaper attempt `default:1000`
* `reaperTimeout` - specify the number of milliseconds for timing out callbacks that don't return `default:30000`
* `raw` - driver expects Buffer raw bson document, `default:false`


## Opening a database

Expand Down

0 comments on commit f730d8e

Please sign in to comment.