txregCollections {TxRegInfra}R Documentation

list collections in AWS mongo server for txregnet

Description

list collections in AWS mongo server for txregnet

Usage

txregCollections(ignore = NULL, url = URL_txregInAWS(),
  db = "txregnet", cliparms = "--quiet --eval")

Arguments

ignore

NULL by default; otherwise an integer vector telling which lines of mongo db.getCollectionNames() result should be ignored

url

a valid mongodb URL

db

character(1) db name

cliparms

character(1) arguments to 'mongo', defaults to '–quiet –eval'

Value

a character vector of collection names

Note

Different mongodb servers can have different response prologues. The ignore parameter is there to bypass some of the initial text. However, with the –quiet option this may not be needed. We now search for "[" to start parsing the collection list output.

Examples

if (verifyHasMongoCmd()) txregCollections()[seq_len(5)]

[Package TxRegInfra version 1.4.0 Index]