-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from victor0402/master
function create using write concern
- Loading branch information
Showing
3 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,15 @@ To use it you need `[email protected]`. | |
var schema = new Schema('mongodb'); | ||
... | ||
``` | ||
You can also set some settings in your schema, as [write concern and journaling](http://docs.mongodb.org/manual/core/write-concern/): | ||
```javascript | ||
var Schema = require('jugglingdb').Schema; | ||
var schema = new Schema('mongodb', { | ||
url: 'mongodb://localhost/myapp', | ||
w: 1, | ||
j: 1 | ||
}); | ||
``` | ||
|
||
## Running tests | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters