rouchdb_query/lib.rs
1/// Query engine for RouchDB — Mango selectors and map/reduce views.
2///
3/// Provides two query mechanisms:
4///
5/// 1. **Mango queries** — CouchDB-compatible selector-based document matching
6/// with field projection, sorting, and pagination.
7///
8/// 2. **Map/reduce views** — Temporary (ad-hoc) views using Rust closures
9/// with built-in reduce functions (sum, count, stats) and custom reducers.
10pub mod mango;
11pub mod mapreduce;
12
13pub use mango::{
14 BuiltIndex, CreateIndexResponse, ExplainIndex, ExplainResponse, FindOptions, FindResponse,
15 IndexDefinition, IndexFields, IndexInfo, SortDirection, SortField, build_index, find,
16 matches_selector,
17};
18pub use mapreduce::{
19 EmittedRow, ReduceFn, StaleOption, ViewQueryOptions, ViewResult, ViewRow, query_view,
20};