pub struct DbSetQueryIncludeOne<E: Entity, J: Entity> { /* private fields */ }Expand description
Query builder returned by DbSetQuery::include::<T>(...) for a single
included navigation.
Implementations§
Source§impl<E: Entity, J: Entity> DbSetQueryIncludeOne<E, J>
impl<E: Entity, J: Entity> DbSetQueryIncludeOne<E, J>
Sourcepub fn filter(self, predicate: Predicate) -> Self
pub fn filter(self, predicate: Predicate) -> Self
Adds a predicate after configuring the include.
Sourcepub fn inner_join<K: Entity>(self, on: Predicate) -> Self
pub fn inner_join<K: Entity>(self, on: Predicate) -> Self
Adds an explicit INNER JOIN after configuring the include.
Sourcepub fn left_join<K: Entity>(self, on: Predicate) -> Self
pub fn left_join<K: Entity>(self, on: Predicate) -> Self
Adds an explicit LEFT JOIN after configuring the include.
Sourcepub fn order_by(self, order: OrderBy) -> Self
pub fn order_by(self, order: OrderBy) -> Self
Adds an ordering expression after configuring the include.
Sourcepub fn paginate(self, request: PageRequest) -> Self
pub fn paginate(self, request: PageRequest) -> Self
Applies page-based pagination after configuring the include.
Sourcepub fn with_deleted(self) -> Self
pub fn with_deleted(self) -> Self
Includes logically deleted root rows for entities with soft_delete.
This affects only the root entity E; included entities still apply
their own default soft_delete visibility inside the include join.
Sourcepub fn only_deleted(self) -> Self
pub fn only_deleted(self) -> Self
Returns only logically deleted root rows for entities with soft_delete.
This affects only the root entity E; included entities still apply
their own default soft_delete visibility inside the include join.
Sourcepub async fn all(self) -> Result<Vec<E>, OrmError>where
E: FromRow + IncludeNavigation<J> + Send + SoftDeleteEntity + TenantScopedEntity,
J: Clone + FromRow + Send + SoftDeleteEntity + Sync + TenantScopedEntity + 'static,
pub async fn all(self) -> Result<Vec<E>, OrmError>where
E: FromRow + IncludeNavigation<J> + Send + SoftDeleteEntity + TenantScopedEntity,
J: Clone + FromRow + Send + SoftDeleteEntity + Sync + TenantScopedEntity + 'static,
Executes the query and materializes root entities with one included navigation attached.
Sourcepub async fn first(self) -> Result<Option<E>, OrmError>where
E: FromRow + IncludeNavigation<J> + Send + SoftDeleteEntity + TenantScopedEntity,
J: Clone + FromRow + Send + SoftDeleteEntity + Sync + TenantScopedEntity + 'static,
pub async fn first(self) -> Result<Option<E>, OrmError>where
E: FromRow + IncludeNavigation<J> + Send + SoftDeleteEntity + TenantScopedEntity,
J: Clone + FromRow + Send + SoftDeleteEntity + Sync + TenantScopedEntity + 'static,
Executes the query and materializes the first root entity with one included navigation attached, if any.