List databases

30 views
Skip to first unread message

deathbringer1190

unread,
Apr 8, 2014, 3:45:11 PM4/8/14
to reacti...@googlegroups.com
I'm having difficulty finding a way to list all databases on the mongo server.  Similar to the 'show dbs' mongo console command.  Is it possible to do this with reactivemongo? 

Thanks

tdroz...@gmail.com

unread,
Apr 9, 2014, 11:31:40 PM4/9/14
to reacti...@googlegroups.com
I would look at the Scaladoc (specifically this package: http://reactivemongo.org/releases/0.10/api/index.html#reactivemongo.core.commands.package)

The commands should help you do what you want - including using the Aggregation framework.

-t

Stephane Godbillon

unread,
Apr 16, 2014, 4:07:05 AM4/16/14
to reacti...@googlegroups.com
Hi,

I wrote such a command for my own purposes: https://gist.github.com/sgodbillon/10829302

Cheers,

--
You received this message because you are subscribed to the Google Groups "ReactiveMongo - http://reactivemongo.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reactivemong...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages