mongo.get.database.collections: Get a list of collections in a database

Description Usage Arguments Value See Also Examples

View source: R/mongo.R

Description

Get a list of collections in a database on a MongoDB server.

Usage

1

Arguments

mongo

(mongo) A mongo connection object.

db

(string) Name of the database for which to get the list of collections.

Value

(string vector) List of collection namespaces in the given database.

Note this will not include the system collection db.system.indexes nor the indexes attached to the database. Use mongo.find(mongo, "db.system.indexes", limit=0L) for information on any indexes.

See Also

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

Examples

1
2
3
4
5
6

jonkatz2/rmongodb documentation built on May 19, 2019, 7:30 p.m.