Description Usage Arguments Value See Also Examples
Get a list of databases from a MongoDB server.
1 |
mongo |
(mongo) A mongo connection object. |
(string vector) List of databases. Note this will not include the system databases "admin" and "local".
mongo.get.database.collections
,
mongo.drop.database
,
mongo.command
,
mongo.rename
,
mongo.
1 2 3 4 5 6 | mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
print(mongo.get.databases(mongo))
mongo.destroy(mongo)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.