Skip to main content

RoutineInvocationSession

Trait RoutineInvocationSession 

Source
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§

Source

fn plpgsql_body( &self, function: &SQLUserFunction, definition: &CreateFunction, relation: Option<i64>, ) -> Result<Arc<CompiledFunctionBody>, SQLError>

Source

fn depth_limit(&self) -> usize

Source

fn state_guard( &self, configured: bool, security_definer: bool, ) -> Box<dyn RoutineInvocationState + '_>

Source

fn set_current_user(&self, user: RoleIdentity) -> Result<(), SQLError>

Source

fn set_configured_parameter( &self, name: &str, value: &str, ) -> Result<(), SQLError>

Source

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".

Implementors§