Skip to main content

RuleStatements

Trait RuleStatements 

Source
pub trait RuleStatements<S: Clone + 'static> {
    // Required methods
    fn read_control(&self) -> Result<StorageReadControl, SQLError>;
    fn execute(
        &self,
        action: RuleAction,
        params: &[SQLParam],
        inherited_ctes: Option<&CteScope<S>>,
        privilege_subject: &RoleReference,
        consumer: Option<Rc<dyn QueryRowConsumer + '_>>,
    ) -> Result<StatementOutput, SQLError>;
}

Required Methods§

Source

fn read_control(&self) -> Result<StorageReadControl, SQLError>

Source

fn execute( &self, action: RuleAction, params: &[SQLParam], inherited_ctes: Option<&CteScope<S>>, privilege_subject: &RoleReference, consumer: Option<Rc<dyn QueryRowConsumer + '_>>, ) -> Result<StatementOutput, SQLError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§