/// Executes a reduce over the results of the query
///
/// ```rust
/// # bonsaidb_core::__doctest_prelude!();
/// # fn test_fn<C: Connection>(db: C) -> Result<(), Error> {
/// # tokio::runtime::Runtime::new().unwrap().block_on(async {
/// // score is an f32 in this example
/// let score = db.view::<ScoresByRank>().reduce().await?;
/// println!("Average score: {:3}", score);
/// # Ok(())
/// # })
/// # }
/// ```
Executes a reduce over the results of the query
```rust
Executes a reduce over the results of the query ` ` ` rust
pub async fn reduce(self) -> Result<V::Value, Error> {
        self.connection
            .reduce::<V>(self.key, self.access_policy)
            .await
    }
pub async fn reduce ( self ) -> Result < V :: Value , Error > { self . connection . reduce :: < V > ( self . key , self . access_policy ) . await }
Executes a reduce over the results of the query
```rust
Executes a reduce over the results of the query ` ` ` rust
self
bonsaidb_core::__doctest_prelude!();
None
fn test_fn<c: connection>(db: c) -> result<(), error> {
None
tokio::runtime::runtime::new().unwrap().block_on(async {
score is an f32 in this example
let score = db.view::().reduce().await?;
println!("Average score: {:3}", score).
score is an f32 in this example let score = db . view :: () . reduce () . await? ; println! ( " Average score : { : 3 } " score ) .
ok(())
None
})
None
}
None