Function for request some ids

Share:

Description

Function returns a 128bit uuid requested from CouchDB

Usage

1

Arguments

cdb

Only the connection settings cdb$port, cdb$serverName and cdb$count is needed.

Details

CouchDB API provides the url http://serverName:port/_uuids for those clients who aren't able to create those ids. The number N of ids received from a CouchDB can be set by cdb$count <- N since version 0.6. The function writes to cdb$res (in opposite to cdbGetUuid() whitch writes to cdb$id)

Value

cdb

The result of the request is stored in cdb$res after converting the answer into a list using fromJSON().

Author(s)

wactbprot

See Also

cdbMakeDB

Examples

1
2
3
4
5
6
## Not run: 
ccc            <- cdbIni()
ccc$count      <- 100
cdbGetUuidS(ccc)$res

## End(Not run)