cdbMakeDB {R4CouchDB} | R Documentation |
The name of the new database is taken from cdb$newDBName
.
cdbMakeDB(cdb)
cdb |
The |
The work is done by getURL()
from Duncans RCurl package.
After creating the new database the function makes the shortcut
cdb$DBName <- cdb$newDBName
so that further operations happen on the
new created database. Finaly cdb$newDBName <- ""
.
cdb |
The CouchDB answer is stored in |
The convention for database naming should be implemented.
wactbprot
cdbUpdateDoc
## Not run:
ccc <- cdbIni()
ccc$newDBName <- "r4couchdb_db"
ccc <- cdbMakeDB(ccc)
ccc$res
ccc$removeDBName <- ccc$DBName
cdbRemoveDB(ccc)$res
## End(Not run)