jeroen / mongolite

Fast and Simple MongoDB Client for R
https://jeroen.github.io/mongolite/
284 stars 64 forks source link

Adding `showCollections()` and `showDatabases()` methods. #252

Open ralmond opened 1 year ago

ralmond commented 1 year ago

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 1 year ago

I suppose this should wrap:

ralmond commented 1 year ago

At a quick look, that looks good. (I haven't looked at the C API in detail).