pub trait RoutineInvocationSession {
// Required methods
fn plpgsql_body(
&self,
function: &SQLUserFunction,
definition: &CreateFunction,
relation: Option<i64>,
) -> Result<Arc<CompiledFunctionBody>, SQLError>;
fn depth_limit(&self) -> usize;
fn state_guard(
&self,
configured: bool,
security_definer: bool,
) -> Box<dyn RoutineInvocationState + '_>;
fn set_current_user(&self, user: RoleIdentity) -> Result<(), SQLError>;
fn set_configured_parameter(
&self,
name: &str,
value: &str,
) -> Result<(), SQLError>;
fn plpgsql_variable_conflict(&self) -> VariableConflict;
}Required Methods§
fn plpgsql_body( &self, function: &SQLUserFunction, definition: &CreateFunction, relation: Option<i64>, ) -> Result<Arc<CompiledFunctionBody>, SQLError>
fn depth_limit(&self) -> usize
fn state_guard( &self, configured: bool, security_definer: bool, ) -> Box<dyn RoutineInvocationState + '_>
fn set_current_user(&self, user: RoleIdentity) -> Result<(), SQLError>
fn set_configured_parameter( &self, name: &str, value: &str, ) -> Result<(), SQLError>
Sourcefn plpgsql_variable_conflict(&self) -> VariableConflict
fn plpgsql_variable_conflict(&self) -> VariableConflict
The plpgsql.variable_conflict setting a PL/pgSQL body compiled now takes, with the language’s library loaded as its call handler loads it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".