Skip to main content

CommandScopeSource

Trait CommandScopeSource 

Source
pub trait CommandScopeSource<S: Clone> {
    // Required methods
    fn read_control(&self) -> Result<StorageReadControl, SQLError>;
    fn cancellation(&self) -> &CancellationToken;
    fn command_scope(
        &self,
        privilege_subject: Option<&RoleReference>,
        relations_bound: bool,
    ) -> Result<CteScope<S>, SQLError>;
}
Expand description

Capture catalog, namespace, trigger transition, and privilege state for a command.

Required Methods§

Source

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

Source

fn cancellation(&self) -> &CancellationToken

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§