Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

examples use config.db

  • Loading branch information...
commit 5c37778ffa426393deec23b9d92956da43bc2a46 1 parent e681674
@guileen authored
View
5 examples/generateId.js
@@ -1,8 +1,7 @@
-var mongo = require('../index.js')
- , redis = require('redis').createClient()
+var redis = require('redis').createClient()
, shorten = require('shorten')(redis)
, async = require('async')
- , db = mongo.db('localhost/test')
+ , db = require('./config').db
;
db.bind('user');
View
4 examples/gridfs.js
@@ -1,6 +1,4 @@
-var mongoskin = require('../lib/mongoskin');
-
-var db = mongoskin.db('localhost/test');
+var db = require('./config').db;
db.gridfs().open('test.txt', 'w', function(err, gs) {
gs.write('blablabla', function(err, reply) {
View
3  examples/insert.js
@@ -1,5 +1,4 @@
-var mongoskin = require('../lib/mongoskin')
- , db = mongoskin.db('localhost/test');
+var db = require('./config').db;
db.collection('test').insert({foo: 'bar'}, function(err, result) {
console.log(result);
Please sign in to comment.
Something went wrong with that request. Please try again.