pub struct ViewQueryBuilder<E: QueryEngine, V: View> { /* private fields */ }Expand description
The view query builder that provides access to view query operations.
Views are read-only, so only SELECT operations are available. No create, update, or delete operations are provided.
Implementations§
Source§impl<E: QueryEngine, V: View> ViewQueryBuilder<E, V>
impl<E: QueryEngine, V: View> ViewQueryBuilder<E, V>
Sourcepub fn find_many(&self) -> ViewFindManyOperation<E, V>
pub fn find_many(&self) -> ViewFindManyOperation<E, V>
Start a find_many query on the view.
Sourcepub fn find_first(&self) -> ViewFindFirstOperation<E, V>
pub fn find_first(&self) -> ViewFindFirstOperation<E, V>
Start a find_first query on the view.
Sourcepub fn count(&self) -> ViewCountOperation<E, V>
pub fn count(&self) -> ViewCountOperation<E, V>
Start a count query on the view.
Source§impl<E: QueryEngine, V: MaterializedView> ViewQueryBuilder<E, V>
impl<E: QueryEngine, V: MaterializedView> ViewQueryBuilder<E, V>
Sourcepub fn refresh(&self) -> RefreshMaterializedViewOperation<E, V>
pub fn refresh(&self) -> RefreshMaterializedViewOperation<E, V>
Start a refresh operation for a materialized view.
This is only available for materialized views.
Trait Implementations§
Source§impl<E: QueryEngine, V: View> Clone for ViewQueryBuilder<E, V>
impl<E: QueryEngine, V: View> Clone for ViewQueryBuilder<E, V>
Auto Trait Implementations§
impl<E, V> Freeze for ViewQueryBuilder<E, V>where
E: Freeze,
impl<E, V> RefUnwindSafe for ViewQueryBuilder<E, V>where
E: RefUnwindSafe,
V: RefUnwindSafe,
impl<E, V> Send for ViewQueryBuilder<E, V>
impl<E, V> Sync for ViewQueryBuilder<E, V>
impl<E, V> Unpin for ViewQueryBuilder<E, V>
impl<E, V> UnwindSafe for ViewQueryBuilder<E, V>where
E: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more