pub struct SubquerySpec {
pub navigation_field: String,
pub related_type_name: String,
pub predicate: Option<Box<BoolExpr>>,
pub outer_table: String,
pub related_table: String,
pub fk_column: String,
pub outer_pk_column: String,
}Expand description
G5: Specification for a correlated subquery (EXISTS / NOT EXISTS).
Created by the linq! macro when parsing b.posts.any(|p| p.published).
The navigation_field and related_type_name are set at macro expansion
time; the table/column fields are resolved at SQL generation time from
EntityTypeMeta navigation metadata.
Fields§
Navigation field name on the outer entity (e.g. “posts”).
Related entity type name (e.g. “Post”).
predicate: Option<Box<BoolExpr>>Additional predicate from the closure body (e.g. p.published).
outer_table: StringResolved: outer table name (e.g. “blogs”).
Resolved: related table name (e.g. “posts”).
fk_column: StringResolved: FK column on the related table (e.g. “blog_id”).
outer_pk_column: StringResolved: outer entity’s PK column (e.g. “id”).
Implementations§
Trait Implementations§
Source§impl Clone for SubquerySpec
impl Clone for SubquerySpec
Source§fn clone(&self) -> SubquerySpec
fn clone(&self) -> SubquerySpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SubquerySpec
impl RefUnwindSafe for SubquerySpec
impl Send for SubquerySpec
impl Sync for SubquerySpec
impl Unpin for SubquerySpec
impl UnsafeUnpin for SubquerySpec
impl UnwindSafe for SubquerySpec
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