You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/10/03 11:52:52 UTC
[GitHub] glynnbird commented on issue #126: [RFC] Implement Partitions api
glynnbird commented on issue #126: [RFC] Implement Partitions api
URL: https://github.com/apache/couchdb-nano/issues/126#issuecomment-426608658
If a user has a "partition object" e.g.
```js
const partition1 = db.partition('partition1');
```
then it might make sense for them to be able to do all CRUD operations:
- `partition1.insert(doc, [params)` - insert and update
- `partition1.get(name)` - fetch single doc
- `partition1.destroy(docname, rev)` - delete single doc
- `partition1.bulk(docname, rev)`- bulk C/U/D
This mechanism allows the partition to be expanded in future to support `_all_docs` and `_changes` endpoints if they were to be implemented on the partition level.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services