pub struct ControlledBindingSnapshot {
pub catalog: CatalogReadView,
pub resolution: BindingResolution,
pub ctes: BindingMap<RowSchema>,
pub deferred_ctes: BindingMap<RetainedCtePlan>,
pub non_returning_ctes: BindingNameSet,
pub scalar_subqueries: RetainedQueryArena,
}Fields§
§catalog: CatalogReadView§resolution: BindingResolution§ctes: BindingMap<RowSchema>§deferred_ctes: BindingMap<RetainedCtePlan>§non_returning_ctes: BindingNameSet§scalar_subqueries: RetainedQueryArenaImplementations§
Source§impl ControlledBindingSnapshot
impl ControlledBindingSnapshot
Sourcepub fn from_inputs_with_control<'a>(
catalog: CatalogReadView,
resolution: Produced<RelationNameResolution>,
ctes: impl IntoIterator<Item = (&'a str, RowSchema)>,
deferred_ctes: impl IntoIterator<Item = (&'a str, &'a RetainedCtePlan)>,
non_returning_ctes: impl IntoIterator<Item = &'a str>,
scalar_subqueries: RetainedQueryArena,
control: &ProductionControl<'_>,
) -> Result<Self, SQLError>
pub fn from_inputs_with_control<'a>( catalog: CatalogReadView, resolution: Produced<RelationNameResolution>, ctes: impl IntoIterator<Item = (&'a str, RowSchema)>, deferred_ctes: impl IntoIterator<Item = (&'a str, &'a RetainedCtePlan)>, non_returning_ctes: impl IntoIterator<Item = &'a str>, scalar_subqueries: RetainedQueryArena, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
Capture borrowed lexical names; each supplied schema and retained executable already owns its immutable payload.
pub fn context_with_control( &self, control: &ProductionControl<'_>, ) -> Result<ControlledBindingContext<'_>, SQLError>
Trait Implementations§
Source§impl BindingTypeScope for ControlledBindingSnapshot
impl BindingTypeScope for ControlledBindingSnapshot
fn scalar_subqueries(&self) -> &[QueryPlan]
fn type_context( &self, control: &ProductionControl<'_>, ) -> Result<ControlledBindingContext<'_>, SQLError>
Auto Trait Implementations§
impl !RefUnwindSafe for ControlledBindingSnapshot
impl !UnwindSafe for ControlledBindingSnapshot
impl Freeze for ControlledBindingSnapshot
impl Send for ControlledBindingSnapshot
impl Sync for ControlledBindingSnapshot
impl Unpin for ControlledBindingSnapshot
impl UnsafeUnpin for ControlledBindingSnapshot
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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