add_data_to_db: Add data to db

View source: R/utils-mongodb.R

add_data_to_dbR Documentation

Add data to db

Description

Rpackage file: utils-mongodb.R

Usage

add_data_to_db(
  data,
  collection = "data",
  data_type,
  database = "rhomis",
  url = "mongodb://localhost",
  projectID,
  formID,
  overwrite = F
)

Arguments

data

The tibble dataset that you would like to write

collection

The collection which you would like to add the data to

data_type

The type of data which is being added (e.g. indicatorData, processedData,metaData...)

database

The database where the data is going to be saved

url

The url of the database you are saving the database to. The default mongoDB url is used as the default here

projectID

The ID of the project you would like to save

formID

The ID of the form you would like to save

overwrite

Whether or not to overwrite a previously saved version of the project


l-gorman/rhomis-R-package documentation built on Nov. 8, 2023, 6:46 a.m.