Skip to main content

RuleSourceCatalog

Trait RuleSourceCatalog 

Source
pub trait RuleSourceCatalog {
    // Required methods
    fn query_source_columns(
        &self,
        name: &str,
        relations_bound: bool,
    ) -> Result<Option<Vec<String>>, SQLError>;
    fn rule_relation_definitions(
        &self,
        name: &str,
    ) -> Result<Vec<ColumnDef>, SQLError>;

    // Provided methods
    fn query_source_columns_with_control(
        &self,
        name: &str,
        relations_bound: bool,
        control: &ProductionControl<'_>,
    ) -> Result<Option<Produced<Vec<String>>>, SQLError> { ... }
    fn rule_relation_columns_with_control(
        &self,
        name: &str,
        control: &ProductionControl<'_>,
    ) -> Result<Produced<Vec<String>>, SQLError> { ... }
    fn rule_relation_definitions_with_control(
        &self,
        name: &str,
        control: &ProductionControl<'_>,
    ) -> Result<Produced<Vec<ColumnDef>>, SQLError> { ... }
}

Required Methods§

Source

fn query_source_columns( &self, name: &str, relations_bound: bool, ) -> Result<Option<Vec<String>>, SQLError>

Source

fn rule_relation_definitions( &self, name: &str, ) -> Result<Vec<ColumnDef>, SQLError>

Provided Methods§

Source

fn query_source_columns_with_control( &self, name: &str, relations_bound: bool, control: &ProductionControl<'_>, ) -> Result<Option<Produced<Vec<String>>>, SQLError>

Source

fn rule_relation_columns_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<Produced<Vec<String>>, SQLError>

Source

fn rule_relation_definitions_with_control( &self, name: &str, control: &ProductionControl<'_>, ) -> Result<Produced<Vec<ColumnDef>>, SQLError>

External catalogs may return an owned declaration; native catalogs override this to admit copies directly from retained inputs.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§