/// Executes the query and retrieves the results.
///
/// ```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
/// for mapping in db.view::<ScoresByRank>().query().await? {
///     println!("Rank {} has a score of {:3}", mapping.key, mapping.value);
/// }
/// # Ok(())
/// # })
/// # }
/// ```
Executes the query and retrieves the results.
Executes the query and retrieves the results .
pub async fn query(self) -> Result<Vec<Map<V::Key, V::Value>>, Error> {
        self.connection
            .query::<V>(self.key, self.sort, self.limit, self.access_policy)
            .await
    }
pub async fn query ( self ) -> Result < Vec < Map < V :: Key , V :: Value > > , Error > { self . connection . query :: < V > ( self . key , self . sort , self . limit , self . access_policy ) . await }
Executes the query and retrieves the results.
Executes the query and retrieves the results .
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
for mapping in db.view::().query().await. {
println!("Rank {} has a score of {:3}", mapping.key, mapping.value);
}
score is an f32 in this example for mapping in db . view :: () . query () . await . { println! ( " Rank {} has a score of { : 3 } " mapping . key mapping . value ) ; }
ok(())
None
})
None
}
None