txregCollections {TxRegInfra} | R Documentation |
list collections in AWS mongo server for txregnet
txregCollections(ignore = NULL, url = URL_txregInAWS(), db = "txregnet", cliparms = "--quiet --eval")
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' |
a character vector of collection names
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.
if (verifyHasMongoCmd()) txregCollections()[seq_len(5)]