pub struct RoutineCallDescription { /* private fields */ }Implementations§
Source§impl RoutineCallDescription
impl RoutineCallDescription
Sourcepub fn body_parameter_type<'a>(
&'a self,
index: usize,
name: &str,
environment: RoutineConversionEnvironment<'_>,
) -> Result<Cow<'a, ColumnType>, SQLError>
pub fn body_parameter_type<'a>( &'a self, index: usize, name: &str, environment: RoutineConversionEnvironment<'_>, ) -> Result<Cow<'a, ColumnType>, SQLError>
Resolve a concrete SQL-body input at its original position, after invocation coercion. Only the selected call’s exact parameter spelling can reuse this slot.
Sourcepub fn body_result_layout<'a>(
&'a self,
types: &dyn RoutineTypeCatalog,
definition: &CreateFunction,
result: Option<&AnalyzedResult>,
environment: RoutineConversionEnvironment<'_>,
) -> Result<Cow<'a, SQLFunctionResultLayout>, SQLError>
pub fn body_result_layout<'a>( &'a self, types: &dyn RoutineTypeCatalog, definition: &CreateFunction, result: Option<&AnalyzedResult>, environment: RoutineConversionEnvironment<'_>, ) -> Result<Cow<'a, SQLFunctionResultLayout>, SQLError>
Reuse the selected function’s successful result check only for the complete output type/record description in the original scope. Callers still perform caller-specific anonymous-record checks at their original boundary.
Sourcepub fn coerce_body_result(
&self,
layout: &SQLFunctionResultLayout,
index: usize,
value: &Value,
source: Option<&ColumnType>,
environment: RoutineConversionEnvironment<'_>,
) -> Result<Value, SQLError>
pub fn coerce_body_result( &self, layout: &SQLFunctionResultLayout, index: usize, value: &Value, source: Option<&ColumnType>, environment: RoutineConversionEnvironment<'_>, ) -> Result<Value, SQLError>
Convert every returned value with live callbacks. Body effects and earlier output callbacks can invalidate the scope before this conversion.
Source§impl RoutineCallDescription
impl RoutineCallDescription
Sourcepub fn procedural_body(
&self,
parsed: &PLpgSQLFunction,
environment: RoutineConversionEnvironment<'_>,
) -> Result<Option<ProceduralRoutineDescription<'_>>, SQLError>
pub fn procedural_body( &self, parsed: &PLpgSQLFunction, environment: RoutineConversionEnvironment<'_>, ) -> Result<Option<ProceduralRoutineDescription<'_>>, SQLError>
Admit at most one compilation’s datum table for this bound call. Resolving declarations remains lazy at the interpreter’s original read/conversion sites.
Source§impl RoutineCallDescription
impl RoutineCallDescription
Sourcepub fn table_result_layout<'a>(
&'a self,
types: &dyn RoutineTypeCatalog,
definition: &CreateFunction,
environment: RoutineConversionEnvironment<'_>,
) -> Result<Cow<'a, SQLFunctionResultLayout>, SQLError>
pub fn table_result_layout<'a>( &'a self, types: &dyn RoutineTypeCatalog, definition: &CreateFunction, environment: RoutineConversionEnvironment<'_>, ) -> Result<Cow<'a, SQLFunctionResultLayout>, SQLError>
Resolve the selected routine’s declared table shape at the original call boundary. Caller-specific anonymous-record checks and every value stay live.
Source§impl RoutineCallDescription
impl RoutineCallDescription
pub fn function(&self) -> Option<Arc<SQLUserFunction>>
pub fn sources(&self) -> &[Option<ColumnType>]
pub fn is_current(&self, current: Option<&RoutineDescriptionScope>) -> bool
Sourcepub fn coerce_argument(
&self,
index: usize,
value: &Value,
source: Option<&ColumnType>,
environment: RoutineConversionEnvironment<'_>,
) -> Result<Value, SQLError>
pub fn coerce_argument( &self, index: usize, value: &Value, source: Option<&ColumnType>, environment: RoutineConversionEnvironment<'_>, ) -> Result<Value, SQLError>
Each source/target read follows preceding value callbacks, and successful conversions publish descriptions only if that scope is still current afterward.
pub fn coerce_parameter( &self, index: usize, value: &Value, source: Option<&ColumnType>, environment: RoutineConversionEnvironment<'_>, ) -> Result<Value, SQLError>
Auto Trait Implementations§
impl !Freeze for RoutineCallDescription
impl !RefUnwindSafe for RoutineCallDescription
impl !UnwindSafe for RoutineCallDescription
impl Send for RoutineCallDescription
impl Sync for RoutineCallDescription
impl Unpin for RoutineCallDescription
impl UnsafeUnpin for RoutineCallDescription
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
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> ⓘ
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> ⓘ
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