pub struct SqlBoundQuery {
pub capped: bool,
pub input_mode: SqlBoundInputMode,
pub items: Vec<SqlBoundItem>,
pub outputs: Vec<SqlBoundOutput>,
pub group_constant: bool,
pub group_keys: Vec<SqlGroupKey>,
pub catalog_limit: Option<(String, String)>,
}Expand description
A query body: its FROM items, and whether it caps its own row count.
Fields§
§capped: boolA LIMIT / FETCH FIRST, or a pure aggregate (no GROUP BY).
input_mode: SqlBoundInputModeInput execution and target-row projection policy.
items: Vec<SqlBoundItem>§outputs: Vec<SqlBoundOutput>Output columns in ordinal order; caller-sized values stay finite despite repeated rows.
group_constant: boolPlain GROUP BY of single-value keys. A set-returning ORDER BY clears it.
group_keys: Vec<SqlGroupKey>Plain GROUP BY keys that stay bounded only when their FROM items are bounded.
catalog_limit: Option<(String, String)>Parent column named by LIMIT, counted only when the catalog proves it NOT NULL.
Implementations§
Source§impl SqlBoundQuery
impl SqlBoundQuery
Sourcepub fn has_opaque_row_inputs(&self) -> bool
pub fn has_opaque_row_inputs(&self) -> bool
Opaque FROM/projection sources retain unknown row expansion through query wrappers. A result LIMIT cannot establish the amount of work inside those sources.
Trait Implementations§
Source§impl Clone for SqlBoundQuery
impl Clone for SqlBoundQuery
Source§impl Debug for SqlBoundQuery
impl Debug for SqlBoundQuery
Source§impl Default for SqlBoundQuery
impl Default for SqlBoundQuery
impl Eq for SqlBoundQuery
Source§impl PartialEq for SqlBoundQuery
impl PartialEq for SqlBoundQuery
impl StructuralPartialEq for SqlBoundQuery
Auto Trait Implementations§
impl Forget for SqlBoundQuery
impl Freeze for SqlBoundQuerywhere
*const u8 is !null: Freeze,
PhantomData<SqlBoundItem>: Freeze,
PhantomData<SqlBoundOutput>: Freeze,
PhantomData<SqlGroupKey>: Freeze,
PhantomData<u8>: Freeze,
impl Move for SqlBoundQuery
impl RefUnwindSafe for SqlBoundQuery
impl Send for SqlBoundQuery
impl Sync for SqlBoundQuery
impl Unpin for SqlBoundQuery
impl UnsafeUnpin for SqlBoundQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<SqlBoundItem>: UnsafeUnpin,
PhantomData<SqlBoundOutput>: UnsafeUnpin,
PhantomData<SqlGroupKey>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for SqlBoundQuerywhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<ReplaceSelectElement>: UnwindSafe,
BoxRaw<DataType>: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more