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.


[ Full content available at: https://github.com/apache/couchdb-nano/issues/126 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to