mongo_manipulation: mongo_manipulation

Description Usage Arguments Details Value Note Author(s)

View source: R/pull&push.R

Description

Read or pull or modify data in a cluster database

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
mongo_manipulation(
  collection = config$collection,
  database = config$database,
  host = config$host,
  username = config$username,
  password = config$password,
  mongo_choice = c("push", "pull", "update_record", "delete_record"),
  push_record = NULL,
  id_filter = NULL,
  element_id_filter = NULL,
  id_update = NULL,
  element_id_update = NULL
)

Arguments

collection

your cluster

database

name of database inside the cluster

host

host of the cluster

username

Your username to enter to the cluster

password

your password to enter to the cluster

mongo_choice

choice that we want to do with a database in a collection

push_record

dataset we want to push to the collection

id_filter

variable of the dataset that we want to filter when we pull this.

element_id_filter

observation of id_variable that will allow to pull an specific table.

id_update

variable of the dataset that we want to update.

element_id_update

values to update for the variable id_update

Details

This function allows you to push, pull or modify a database

Value

"This function returns different results based on mongo_choice variable:"

Note

Author(s)

Eduardo Trujillo


1Edtrujillo1/udeploy documentation built on July 13, 2021, 9:12 p.m.