Skip to content

Commit

Permalink
Merge pull request #83 from cainus/master
Browse files Browse the repository at this point in the history
fix the deleteAllDBs example to use client.dropDatabase() instead of …
  • Loading branch information
nichdiekuh committed Jul 13, 2015
2 parents 0845934 + ed90f73 commit 2176694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/deleteAllDBs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ client.getDatabaseNames(function (err, dbs) {
}

for (var i = dbs.length - 1; i >= 0; i--) {
client.deleteDatabase(dbs[i], callbackGenerator(dbs[i]))
client.dropDatabase(dbs[i], callbackGenerator(dbs[i]))
}
})

0 comments on commit 2176694

Please sign in to comment.