nodbi (version 0.2.0)

docdb_update: Update documents

Description

Update documents

Usage

docdb_update(src, key, value, ...)

Arguments

src

source object, result of call to src

key

(chartacter) A key. ignored for mongo

value

(data.frame) A single data.frame

...

Ignored

Details

Only CouchDB supported for now

Examples

Run this code
# NOT RUN {
# CouchDB
src <- src_couchdb()
docdb_create(src, "mtcars2", mtcars)
docdb_get(src, "mtcars2")

mtcars$letter <- sample(letters, NROW(mtcars), replace = TRUE)
invisible(docdb_update(src, "mtcars2", mtcars))
docdb_get(src, "mtcars2")
# }

Run the code above in your browser using DataCamp Workspace