Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (16 sloc) 1.953 kb
913918f @olegp first commit
authored
1 # Mongo Sync
2
a453f0f @olegp Update README.md
authored
3 Mongo Sync is a synchronous MongoDB driver for use with [Common Node](http://olegp.github.com/common-node/) that attempts to closely approximate the [MongoDB shell](http://www.mongodb.org/display/DOCS/dbshell+Reference).
53879a5 @olegp Update README.md
authored
4
a453f0f @olegp Update README.md
authored
5 It is a thin wrapper around [Mongolian DeadBeef](https://github.com/marcello3d/node-mongolian/). Here is a quick usage example:
53879a5 @olegp Update README.md
authored
6
7 var Server = require("mongo-sync").Server;
8 var server = new Server('127.0.0.1');
9 var result = server.db("test").getCollection("posts").find().toArray();
10 console.log(result);
11 server.close();
a453f0f @olegp Update README.md
authored
12
13 For a complete application using this driver, check out [Notes](https://github.com/olegp/notes/).
14
b1fccec @olegp Update README.md
authored
15 If you want to use Mongo Sync directly with [node-fibers](https://github.com/laverdet/node-fibers) (i.e. without Common Node), make sure all database requests occur within a fiber.
53879a5 @olegp Update README.md
authored
16
913918f @olegp first commit
authored
17 ### License
18
19 (The MIT License)
20
21 Copyright (c) 2011+ Oleg Podsechin
22
23 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
24
25 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
26
27 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Something went wrong with that request. Please try again.