rmongodb (version 1.8.0)

mongo.get.databases: Get a list of databases from a MongoDB server

Description

Get a list of databases from a MongoDB server.

Usage

mongo.get.databases(mongo)

Arguments

mongo
(mongo) A mongo connection object.

Value

(string vector) List of databases. Note this will not include the system databases "admin" and "local".

See Also

mongo.get.database.collections, mongo.drop.database, mongo.command, mongo.rename, mongo.

Examples

Run this code
mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
    print(mongo.get.databases(mongo))

    mongo.destroy(mongo)
}

Run the code above in your browser using DataLab