Reputation: 151126
Or, does using Ruby's irb and then require 'mongo'
and adding some Connect
statement essentially act like a Ruby shell... it would be great if a
Ruby shell can be possible which as convenient as the Javascript
Shell.
Upvotes: 1
Views: 489
Reputation: 6175
You may find hirb handy for creating ascii tables from mongodb objects.
Upvotes: 0
Reputation: 45297
Your idea is fundamentally correct. I mean, as long as the language can handle command-line interpretation and support a MongoDB driver, then you could theoretically build a new MongoDB shell.
However, I regularly read through the MongoDB mailing lists and I think that you're kind of on your own for this idea right now. Hey, writing a Ruby shell for Mongo would be an awesome way to learn a lot about Mongo. However, the current Mongo community is still relatively small and no one is really complaining too much about the javascript shell.
Upvotes: 1