Created
July 31, 2013 17:47
-
-
Save clintonhalpin/6124326 to your computer and use it in GitHub Desktop.
Node Mongo Connection
This file contains hidden or 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
var mongo = require('mongodb'); | |
var Server = mongo.Server, | |
Db = mongo.Db, | |
BSON = mongo.BSONPure; | |
var server = new Server('localhost', 27017, {auto_reconnect: true}); | |
db = new Db('itemsdb', server, {safe: true}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment