pub struct SubLink {
pub kind: SubLinkKind,
pub test: Option<Expr>,
pub query: Query,
pub alternative: Option<Box<SubLink>>,
}Expand description
A subquery in an expression, as SubLink.
Fields§
§kind: SubLinkKind§test: Option<Expr>testexpr: for ANY, ALL and a row comparison, the test of each row of the subquery. It compares the left side with ExprKind::SubColumn.
query: Query§alternative: Option<Box<SubLink>>For a correlated EXISTS, the same test as ANY on a subquery that reads no column of the query, as convert_EXISTS_to_ANY makes it. The planner fills it and runs the subquery that costs less, as an AlternativeSubPlan.
Trait Implementations§
impl StructuralPartialEq for SubLink
Auto Trait Implementations§
impl Freeze for SubLink
impl RefUnwindSafe for SubLink
impl Send for SubLink
impl Sync for SubLink
impl Unpin for SubLink
impl UnsafeUnpin for SubLink
impl UnwindSafe for SubLink
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