cdbRemoveDB: Function to remove a database

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/cdbRemoveDB.R

Description

Removing a database means sending a http- "DELETE"- request to http://cdb$serverName:cdb$port/ ...

Usage

1

Arguments

cdb

The cdb has to provide cdb$serverName, cdb$port and cdb$DBName

Details

In cdb a entry cdb$delDBName should be provided for more explicit deleting respectively more secure removing.

Value

cdb

The CouchDB answer is stored in cdb$res. Any problems on the R side are reportet in cdb$error

Author(s)

wactbprot

See Also

cdbMakeDB

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
ccc               <- cdbIni()
ccc$newDBName     <- "r4couchdb_db"
ccc               <- cdbMakeDB(ccc)
ccc$res
ccc$removeDBName  <- ccc$DBName
cdbRemoveDB(ccc)$res

## End(Not run)

R4CouchDB documentation built on May 29, 2017, 7:10 p.m.