pub struct SQLRoutineInputs { /* private fields */ }Expand description
Session-local analysis by routine revision, statement position and concrete input types.
Implementations§
Source§impl SQLRoutineInputs
impl SQLRoutineInputs
Sourcepub fn statement(
&self,
identity: SQLBodyIdentity,
position: usize,
parameter_types: &[ColumnType],
context: &PreparedDefinitionContext<'_>,
prepare: impl FnOnce() -> Result<PreparedDefinition, SQLError>,
) -> Result<Arc<SQLRoutineStatement>, SQLError>
pub fn statement( &self, identity: SQLBodyIdentity, position: usize, parameter_types: &[ColumnType], context: &PreparedDefinitionContext<'_>, prepare: impl FnOnce() -> Result<PreparedDefinition, SQLError>, ) -> Result<Arc<SQLRoutineStatement>, SQLError>
Publish only successful analysis and result validation, before execution. Neither catalog callbacks nor recursive preparation run under the cache lock.
pub fn statement_with_control( &self, identity: SQLBodyIdentity, position: usize, parameter_types: &[ColumnType], context: &PreparedDefinitionContext<'_>, control: &ProductionControl<'_>, prepare: impl FnOnce() -> Result<PreparedDefinition<SharedExecutablePlan>, SQLError>, ) -> Result<Arc<SQLRoutineStatement>, SQLError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SQLRoutineInputs
impl !RefUnwindSafe for SQLRoutineInputs
impl !UnwindSafe for SQLRoutineInputs
impl Send for SQLRoutineInputs
impl Sync for SQLRoutineInputs
impl Unpin for SQLRoutineInputs
impl UnsafeUnpin for SQLRoutineInputs
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