Skip to main content

StatementQueryContexts

Trait StatementQueryContexts 

Source
pub trait StatementQueryContexts<S: Clone + 'static> {
    // Required methods
    fn statement_scope(
        &self,
        privilege_subject: Option<&RoleReference>,
    ) -> Result<CteScope<S>, SQLError>;
    fn query_context(&self) -> QueryContext<'_, S>;
    fn row_lock_context(&self) -> RowLockContext<'_, S>;
    fn with_expression_context(
        &self,
        scope: &CteScope<S>,
        params: &[SQLParam],
        operation: &mut StatementExpressionOperation<'_>,
    ) -> Result<SQLResult, SQLError>;
}

Required Methods§

Source

fn statement_scope( &self, privilege_subject: Option<&RoleReference>, ) -> Result<CteScope<S>, SQLError>

Source

fn query_context(&self) -> QueryContext<'_, S>

Source

fn row_lock_context(&self) -> RowLockContext<'_, S>

Source

fn with_expression_context( &self, scope: &CteScope<S>, params: &[SQLParam], operation: &mut StatementExpressionOperation<'_>, ) -> Result<SQLResult, SQLError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§