listAllCollections: list all collections in a database, using command-line...

Description Usage Arguments Value Examples

View source: R/mongolite.R

Description

list all collections in a database, using command-line interface

Usage

1
2
3
listAllCollections(url = "mongodb://127.0.0.1:27017", db = "test",
  lisproc = function(x) {     ind = grep("MongoDB server", x)[1]    
  x[-seq_len(ind)] })

Arguments

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'

Value

vector of strings

Examples

1

TxRegInfra documentation built on Nov. 8, 2020, 5:15 p.m.