Function MongoClient.getDatabases
Return a handle to all databases of the server.
auto getDatabases();
Returns
An input range of MongoDatabase
objects.
Examples
auto names!=!client .getDatabaseNames();
writeln("C…rrent databases are: ", names);