inst/ignore/create-pulled.R

#' @export
docdb_create.src_riak <- function(src, key, value, ...) {
  stopifnot(is.data.frame(value))
  stopifnot(length(attr(src, "dbs")) == 1)
  src$con$create(bucket = attr(src, "dbs"), key = key,
                  body = reeack::riak_serialize(value),
                  content_type = "text/plain", ...)
}

Try the nodbi package in your browser

Any scripts or data that you put into this service are public.

nodbi documentation built on Sept. 24, 2023, 1:08 a.m.