Closed smithsz closed 5 years ago
CHANGES.md
CHANGELOG.md
Add partitioned database support.
Fixes #372.
Add additional partitioned functions to the cloudant object.
cloudant
Adds new API:
const db = cloudant.db.use(dbName); // partition info db.partitionInfo(partitionKey).then((body) => { ... }); // partitoned find db.partitionedFind(partitionKey, selector, callback).then((body) => { ... }); db.partitionedFindAsStream(partitionKey, selector).pipe( ... ) // partitioned all docs db.partitionedList(partitionKey, callback).then((body) => { ... }); db.partitionedListAsStream(partitionKey).pipe( ... ) // partitioned search db.partitionedSearch(partitionKey, designName, searchName, params, callback).then((body) => { ... }); db.partitionedSearchAsStream(partitionKey, designName, searchName, params).pipe( ... ) // partitioned view db.partitionedView(partitionKey, designName, viewName, params, callback).then((body) => { ... }); db.partitionedViewAsStream(partitionKey, designName, viewName, params).pipe( ... )
No change.
Includes additional unit tests.
Checklist
CHANGES.md
|CHANGELOG.md
) or test/build only changesDescription
Add partitioned database support.
Fixes #372.
Approach
Add additional partitioned functions to the
cloudant
object.Schema & API Changes
Adds new API:
Security and Privacy
No change.
Testing
Includes additional unit tests.
Monitoring and Logging
No change.