connect_stage_collections: Connect to the e-mission's MongoDB database

Description Usage Arguments Value

View source: R/utils_connect_database.R

Description

Connect to the e-mission's MongoDB database

Usage

1
2
3
4
5
connect_stage_collections(
  db = "Stage_database",
  collections = COLLECTIONS,
  url = getOption("emdash.mongo_url")
)

Arguments

db

database name. Default as 'Stage_database'.

collections

collections to connect to, by default this try to connect to all the collections in [COLLECTIONS].

url

address of the emisison mongodb server in mongo connection string [URI format](https://docs.mongodb.com/manual/reference/connection-string/). The default is ‘getOption(’emdash.mongo_url')'

Value

a list of mongolite connection objects.


asiripanich/emdash documentation built on Sept. 23, 2021, 7:20 p.m.