txregCollections: list collections in AWS mongo server for txregnet

Description Usage Arguments Value Note Examples

View source: R/lite.R

Description

list collections in AWS mongo server for txregnet

Usage

1
2
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

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

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