[SERVER-15253] Add "show colls" alias for "show collections" Created: 13/Sep/14  Updated: 10/Dec/14  Resolved: 14/Sep/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.6.4
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Ivan Todoroski Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

In the MongoDB shell, we are able to type "show dbs" instead of "show databases" to list the databases, which is very convenient.

But when it comes to listing collections, we must spell out the full "show collections" every single time, which gets old pretty quick.

Could you please add a "show colls" shorthand for this, similar to "show dbs"?

This should be a trivial change, yet it would be immensely appreciated by sysadmins spending their days in the MongoDB shell...



 Comments   
Comment by Ivan Todoroski [ 14/Sep/14 ]

Oh wow, how did I miss that one!

Thanks for the tip, and apologies for the noise, I'm still relatively new to MongoDB.

Feel free to close this ticket, "show tables" is more than adequate.

Comment by Michael O'Brien [ 13/Sep/14 ]

Ivan - the shell does already have a "show tables" shorthand.
That's one character longer than 'colls' but it should still save you some typing

Generated at Thu Feb 08 03:37:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.