nodbi (version 0.2.0)

src_couchdb: Setup a CouchDB database connection

Description

Setup a CouchDB database connection

Usage

src_couchdb(host = "127.0.0.1", port = 5984, path = NULL,
  transport = "http", user = NULL, pwd = NULL, headers = NULL)

Arguments

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

Details

uses sofa under the hood; uses sofa::Cushion for connecting

Examples

Run this code
# NOT RUN {
src_couchdb()
# }

Run the code above in your browser using DataLab