src_couchdb | R Documentation |
Setup a CouchDB database connection
src_couchdb(
host = "127.0.0.1",
port = 5984,
path = NULL,
transport = "http",
user = NULL,
pwd = NULL,
headers = NULL
)
host |
(character) host value, default: 127.0.0.1 |
port |
(integer/numeric) Port. Remember that if you don't want a port set, set this parameter to NULL. Default: 5984 |
path |
(character) context path that is appended to the end of the url, e.g., bar in http://foo.com/bar. Default: NULL, ignored |
transport |
(character) http or https. Default: http |
user |
(character) Username, if any |
pwd |
(character) Password, if any |
headers |
(list) list of named headers |
Uses sofa as backend. nodbi creates or uses
a CouchDB database with JSON documents. If documents do not have
root-level _id
's, UUID's are created as _id
's. Function
docdb_update()
uses jqr::jqr()
to implement patching JSON.
For a benchmark, see https://github.com/ropensci/nodbi#benchmark.
A nodbi
source object
## Not run:
con <- src_couchdb()
print(con)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.