pub struct AnalyzedStatement(/* private fields */);Expand description
Analyzed syntax with immutable input conversions and no optimized access paths. A caller must validate the original statement, catalog, namespace, authority and parser settings in the selected statement snapshot before offering this entry for reuse. Parameter values remain supplied by each execution; their inferred types and explicit declarations must still match.
Implementations§
Source§impl AnalyzedStatement
impl AnalyzedStatement
pub fn plan_for(&self, params: &[SQLParam]) -> Option<&UnifiedPlan>
Sourcepub fn capture_with_control(
plan: &UnifiedPlan,
params: &[SQLParam],
control: &ProductionControl<'_>,
) -> Result<Option<Self>, SQLError>
pub fn capture_with_control( plan: &UnifiedPlan, params: &[SQLParam], control: &ProductionControl<'_>, ) -> Result<Option<Self>, SQLError>
Retain complete analyzed syntax and parameter declarations under the invoking request’s allowance. All destinations are admitted before allocation; copying a published handle shares its immutable storage and lease.
pub fn capture_ref_with_control( plan: PlanRef<'_>, params: &[SQLParam], control: &ProductionControl<'_>, ) -> Result<Option<Self>, SQLError>
pub fn reserved_bytes(&self) -> usize
pub fn ptr_eq(&self, other: &Self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AnalyzedStatement
impl !UnwindSafe for AnalyzedStatement
impl Freeze for AnalyzedStatement
impl Send for AnalyzedStatement
impl Sync for AnalyzedStatement
impl Unpin for AnalyzedStatement
impl UnsafeUnpin for AnalyzedStatement
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,
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