(&self, view_name: &str)
| 355 | |
| 356 | #[inline] |
| 357 | pub fn fetch_view<K, Doc>(&self, view_name: &str) -> Result<Vec<Ref<K, Doc>>, SessionResult> |
| 358 | where |
| 359 | Doc: Serialize + DeserializeOwned + Clone + Send + 'static + Document, |
| 360 | K: Serialize |
| 361 | + DeserializeOwned |
| 362 | + PartialOrd |
| 363 | + Ord |
| 364 | + PartialEq |
| 365 | + Eq |
| 366 | + Hash |
| 367 | + Clone |
| 368 | + Send |
| 369 | + Sync |
| 370 | + 'static |
| 371 | { |
| 372 | match self.datastores.get::<Storage<K, Doc>>() { |
| 373 | None => Err(SessionResult::DataStoreNotFound), |
| 374 | Some(datastore) => { |
| 375 | let res = datastore.fetch_view(view_name); |
| 376 | Ok(res) |
| 377 | } |
| 378 | } |
| 379 | } |
| 380 | |
| 381 | |
| 382 |
nothing calls this directly
no outgoing calls
no test coverage detected