MongoClient.getDatabases

Return a handle to all databases of the server.

class MongoClient
@safe
getDatabases
()
()

Return Value

Type: auto

An input range of MongoDatabase objects.

Examples

auto names = client.getDatabaseNames();
writeln("Current databases are: ", names);

Meta