Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ralmond opened this issue May 7, 2023 · 2 comments
Open

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

ralmond opened this issue May 7, 2023 · 2 comments

Comments

@ralmond
Copy link

ralmond commented May 7, 2023

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.

@ralmond
Copy link
Author

ralmond commented May 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants