Skip to main content

RoutineResolution

Trait RoutineResolution 

Source
pub trait RoutineResolution: FunctionTypeResolver {
Show 26 methods // Provided methods fn has_registered_scalar_function(&self, _name: &str) -> bool { ... } fn has_registered_scalar_function_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError> { ... } fn routine_body( &self, function: &SQLUserFunction, ) -> Result<Arc<CompiledFunctionBody>, SQLError> { ... } fn routine_analysis_body( &self, function: &SQLUserFunction, ) -> Result<Arc<CompiledFunctionBody>, SQLError> { ... } fn has_registered_table_function(&self, _name: &str) -> bool { ... } fn has_registered_table_function_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError> { ... } fn registered_table_function_columns( &self, _name: &str, ) -> Option<Vec<String>> { ... } fn registered_table_function_columns_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<Option<Produced<Vec<String>>>, SQLError> { ... } fn has_registered_aggregate_function(&self, _name: &str) -> bool { ... } fn has_registered_aggregate_function_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError> { ... } fn lookup_visible_sql_functions( &self, _name: &str, ) -> Result<Option<Vec<Arc<SQLUserFunction>>>, SQLError> { ... } fn has_visible_sql_functions_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError> { ... } fn lookup_visible_sql_functions_for_analysis( &self, name: &str, ) -> Result<Option<Vec<Arc<SQLUserFunction>>>, SQLError> { ... } fn visible_function_setness_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<VisibleFunctionSetness, SQLError> { ... } fn visible_function_returns_set_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError> { ... } fn lookup_bound_sql_functions( &self, _name: &str, ) -> Option<Vec<Arc<SQLUserFunction>>> { ... } fn lookup_bound_sql_functions_by_binding( &self, _binding: &FunctionBinding, ) -> Option<Vec<Arc<SQLUserFunction>>> { ... } fn select_bound_function_with_control( &self, binding: &FunctionBinding, control: &ProductionControl<'_>, ) -> Result<Option<Arc<SQLUserFunction>>, SQLError> { ... } fn resolve_static_sql_function( &self, _name: &str, _binding: Option<&FunctionBinding>, _argument_names: &[Option<String>], _argument_types: &[Option<ColumnType>], _explicit_variadic: bool, ) -> Result<Option<Arc<SQLUserFunction>>, SQLError> { ... } fn resolve_static_sql_function_strictness_with_control( &self, name: &str, binding: Option<&FunctionBinding>, call: RoutineCallDescriptor<'_>, control: &ProductionControl<'_>, ) -> Result<Option<bool>, SQLError> { ... } fn resolve_static_sql_function_setness_with_control( &self, name: &str, binding: Option<&FunctionBinding>, argument_names: &[Option<String>], argument_types: &[Option<ColumnType>], explicit_variadic: bool, control: &ProductionControl<'_>, ) -> Result<Option<bool>, SQLError> { ... } fn resolve_static_sql_function_match( &self, _name: &str, _binding: Option<&FunctionBinding>, _argument_names: &[Option<String>], _argument_types: &[Option<ColumnType>], _explicit_variadic: bool, ) -> Result<Option<StaticFunctionMatch>, SQLError> { ... } fn resolve_static_sql_function_match_with_control( &self, name: &str, binding: Option<&FunctionBinding>, call: RoutineCallDescriptor<'_>, control: &ProductionControl<'_>, ) -> Result<Option<OwnedStaticFunctionMatch>, SQLError> { ... } fn resolve_static_sql_function_binding_with_control( &self, name: &str, binding: Option<&FunctionBinding>, argument_names: &[Option<String>], argument_types: &[Option<ColumnType>], explicit_variadic: bool, control: &ProductionControl<'_>, ) -> Result<Option<Produced<FunctionBinding>>, SQLError> { ... } fn resolve_table_function_overload_with_builtins_and_control( &self, name: &str, binding: Option<&FunctionBinding>, call: RoutineCallDescriptor<'_>, builtins: &[BuiltinFunctionOverload], control: &ProductionControl<'_>, ) -> Result<Option<Produced<ResolvedFunctionOverload>>, SQLError> { ... } fn resolve_table_function_overload_with_builtins( &self, _name: &str, _binding: Option<&FunctionBinding>, _argument_names: &[Option<String>], _argument_types: &[Option<ColumnType>], _explicit_variadic: bool, _builtins: &[BuiltinFunctionOverload], ) -> Result<Option<ResolvedFunctionOverload>, SQLError> { ... }
}

Provided Methods§

Source

fn has_registered_scalar_function(&self, _name: &str) -> bool

Source

fn has_registered_scalar_function_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError>

Native registries admit normalized lookup keys before allocation; external catalogs retain their existing scalar callback.

Source

fn routine_body( &self, function: &SQLUserFunction, ) -> Result<Arc<CompiledFunctionBody>, SQLError>

The compiled body of a routine as this session executes it: a bound body as defined, or a source body as this session compiled it. A resolver without a session holds only bound bodies.

Source

fn routine_analysis_body( &self, function: &SQLUserFunction, ) -> Result<Arc<CompiledFunctionBody>, SQLError>

Inspect a body for static effects and portal dependencies. A session may compile source independently here without creating its execution cache entry or issuing diagnostics for a body the query never reaches.

Source

fn has_registered_table_function(&self, _name: &str) -> bool

Source

fn has_registered_table_function_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError>

Native registries admit normalized lookup keys before allocation; external catalogs retain their established boolean callback.

Source

fn registered_table_function_columns(&self, _name: &str) -> Option<Vec<String>>

A registered function’s stable output names, available without calling it. None means its result supplies the descriptor at execution.

Source

fn registered_table_function_columns_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<Option<Produced<Vec<String>>>, SQLError>

Native registries copy borrowed declarations under the request allowance; external catalogs retain their metadata callback.

Source

fn has_registered_aggregate_function(&self, _name: &str) -> bool

Source

fn has_registered_aggregate_function_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError>

Source

fn lookup_visible_sql_functions( &self, _name: &str, ) -> Result<Option<Vec<Arc<SQLUserFunction>>>, SQLError>

Source

fn has_visible_sql_functions_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError>

Native catalogs inspect immutable buckets; external catalogs preserve their visible lookup.

Source

fn lookup_visible_sql_functions_for_analysis( &self, name: &str, ) -> Result<Option<Vec<Arc<SQLUserFunction>>>, SQLError>

Resolve candidate metadata without refreshing session-visible function state during analysis.

Source

fn visible_function_setness_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<VisibleFunctionSetness, SQLError>

Observe the same visible, signature-shadowed candidates used by ordinary analysis without requiring a copied native candidate list.

Source

fn visible_function_returns_set_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<bool, SQLError>

Observe visible set-returning declarations without constructing candidate snapshots in native catalogs. External adapters retain their existing analysis lookup.

Source

fn lookup_bound_sql_functions( &self, _name: &str, ) -> Option<Vec<Arc<SQLUserFunction>>>

Resolve an exact stored routine name without repeating visible-name lookup.

Source

fn lookup_bound_sql_functions_by_binding( &self, _binding: &FunctionBinding, ) -> Option<Vec<Arc<SQLUserFunction>>>

Source

fn select_bound_function_with_control( &self, binding: &FunctionBinding, control: &ProductionControl<'_>, ) -> Result<Option<Arc<SQLUserFunction>>, SQLError>

Select an already bound scalar routine. Native registries borrow their immutable bucket; custom catalogs may supply their existing candidate snapshot.

Source

fn resolve_static_sql_function( &self, _name: &str, _binding: Option<&FunctionBinding>, _argument_names: &[Option<String>], _argument_types: &[Option<ColumnType>], _explicit_variadic: bool, ) -> Result<Option<Arc<SQLUserFunction>>, SQLError>

Source

fn resolve_static_sql_function_strictness_with_control( &self, name: &str, binding: Option<&FunctionBinding>, call: RoutineCallDescriptor<'_>, control: &ProductionControl<'_>, ) -> Result<Option<bool>, SQLError>

Observe strictness after the same static function selection; native overload workspace retains the invoking allowance.

Source

fn resolve_static_sql_function_setness_with_control( &self, name: &str, binding: Option<&FunctionBinding>, argument_names: &[Option<String>], argument_types: &[Option<ColumnType>], explicit_variadic: bool, control: &ProductionControl<'_>, ) -> Result<Option<bool>, SQLError>

Select the same routine as static expression analysis and observe only its set-returning declaration. Native adapters retain admitted overload workspace; external adapters keep the existing selection callback.

Source

fn resolve_static_sql_function_match( &self, _name: &str, _binding: Option<&FunctionBinding>, _argument_names: &[Option<String>], _argument_types: &[Option<ColumnType>], _explicit_variadic: bool, ) -> Result<Option<StaticFunctionMatch>, SQLError>

Source

fn resolve_static_sql_function_match_with_control( &self, name: &str, binding: Option<&FunctionBinding>, call: RoutineCallDescriptor<'_>, control: &ProductionControl<'_>, ) -> Result<Option<OwnedStaticFunctionMatch>, SQLError>

Keep the selected invocation owned while callers derive table-result metadata.

Source

fn resolve_static_sql_function_binding_with_control( &self, name: &str, binding: Option<&FunctionBinding>, argument_names: &[Option<String>], argument_types: &[Option<ColumnType>], explicit_variadic: bool, control: &ProductionControl<'_>, ) -> Result<Option<Produced<FunctionBinding>>, SQLError>

Construct the selected table-call binding without adding scalar output-type validation.

Source

fn resolve_table_function_overload_with_builtins_and_control( &self, name: &str, binding: Option<&FunctionBinding>, call: RoutineCallDescriptor<'_>, builtins: &[BuiltinFunctionOverload], control: &ProductionControl<'_>, ) -> Result<Option<Produced<ResolvedFunctionOverload>>, SQLError>

Source

fn resolve_table_function_overload_with_builtins( &self, _name: &str, _binding: Option<&FunctionBinding>, _argument_names: &[Option<String>], _argument_types: &[Option<ColumnType>], _explicit_variadic: bool, _builtins: &[BuiltinFunctionOverload], ) -> Result<Option<ResolvedFunctionOverload>, SQLError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§