Connection method signature... #16

Closed
tracker1 opened this Issue Oct 9, 2012 · 1 comment

Comments

Projects
None yet
2 participants

tracker1 commented Oct 9, 2012

Would suggest using .attach(... function(err,db){}) instead of the separated .attach(... function(db){}, function(err){}) in order to match conventions that most Node.js projects use. In fact, I would really suggest the following...

.attach(opts, function(err,db){})

Passing in an options object that contains either the local db path, or login credentials.

@ghost ghost assigned hgourvest Oct 9, 2012

Owner

hgourvest commented Oct 9, 2012

I agree

@hgourvest hgourvest closed this in 9d903de Nov 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment