Permalink
Browse files

db; add inspect back

  • Loading branch information...
1 parent 8b6ab8d commit e3203895e79354318afce1340e1277a2abc353f5 @aheckmann committed Jan 29, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/db.js
View
@@ -258,6 +258,14 @@ function createConstructor (db) {
db[method](cmd, opts, cb);
}).help = help("Runs a command on the database")
+ /**
+ * console.log helper
+ */
+
+ ;(DB.prototype.inspect = function () {
+ return db.databaseName;
+ }).help = help("Returns the name of the database");
+
return DB;
}

0 comments on commit e320389

Please sign in to comment.