Adding `showCollections()` and `showDatabases()` methods.
ralmond opened this issue · 2 comments
ralmond commented
In the mongo shell, I frequently find myself using the show databases
and show collections
commands. (It is really useful for debugging situations where I have misspelled or misremembered a database or collection name).
You demonstrate how to do this in the manual using the $run()
command, but they are probably used often enough to warrant their own methods.
jeroen commented
ralmond commented
At a quick look, that looks good. (I haven't looked at the C API in detail).