Expand description
Document model to support CouchDB
document operations.
Structs§
- Memory-optimized, iterable document collection, mostly returned in calls that involve multiple documents results Can target a specific index through implementation of
Index
andIndexMut
Constants§
Traits§
- Trait to deal with typed
CouchDB
documents. For types implementing this trait, the _id and _rev fields on the json data sent/received to/from couchdb are automatically handled by this crate, usingget_id
andget_rev
to get the values (before sending data to couchdb) andset_id
andset_rev
to set them (after receiving data from couchdb). Note, when reading documents from couchdb directly, if whichever field name is used to store the revision is different from “_rev” (e.g. “my_rev
”), the value will always be “the last value of _rev” as updating “_rev is handled by couchdb, not this crate. This should be transparent to users of this crate becauseset_rev
will be called before returning the document to the user, so the user will always see the correct value.