Description Usage Arguments Value Examples
list all collections in a database, using command-line interface
1 2 3 4 5 | listAllCollections(
url = "mongodb://127.0.0.1:27017",
db = "txregnet",
lisproc = prune_to_server_line
)
|
url |
character(1) mongodb URL |
db |
character(1) mongodb database name |
lisproc |
a function that processes the reply to 'mongo ... –eval 'db.getCollectionNames()' to extract JSON, defaults to a function that removes all (header) records up to the one containing 'MongoDB server' |
vector of strings
1 | if (verifyRunningMongodb()) listAllCollections()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.