Expand description
Query engine for RouchDB — Mango selectors and map/reduce views.
Provides two query mechanisms:
-
Mango queries — CouchDB-compatible selector-based document matching with field projection, sorting, and pagination.
-
Map/reduce views — Temporary (ad-hoc) views using Rust closures with built-in reduce functions (sum, count, stats) and custom reducers. Mango query engine — CouchDB-compatible selector-based document queries.
Supports the standard Mango operators: $eq, $ne, $gt, $gte, $lt,
$lte, $in, $nin, $exists, $regex, $elemMatch, $all, $size,
$or, $and, $not, $nor, $mod, $type.
Structs§
- Built
Index - A built in-memory index: sorted entries of (composite_key, doc_id).
- Create
Index Response - Result of creating an index.
- Explain
Index - Description of the index used by a query.
- Explain
Response - Response from
explain()describing how a query would be executed. - Find
Options - Options for a Mango find query.
- Find
Response - Result of a find query.
- Index
Definition - Definition of a Mango index.
- Index
Fields - The fields portion of an index definition.
- Index
Info - Information about an existing index.
Enums§
- Sort
Direction - Sort
Field - A single sort field with direction.
Functions§
- build_
index - Build an index from all documents in an adapter.
- find
- Execute a Mango find query against an adapter.
- matches_
selector - Check if a document matches a Mango selector.