Skip to main content

ReturningCatalog

Trait ReturningCatalog 

Source
pub trait ReturningCatalog {
    // Required methods
    fn try_describe_table_row_type(
        &self,
        table: &str,
    ) -> Result<Option<Vec<ColumnDef>>, String>;
    fn try_table_columns(&self, table: &str) -> Result<Vec<String>, String>;
    fn view_schema(&self, table: &str) -> Result<Option<RowSchema>, SQLError>;

    // Provided methods
    fn with_table_row_type_with_control(
        &self,
        table: &str,
        control: &ProductionControl<'_>,
        read: &mut dyn FnMut(&[ColumnDef]) -> Result<(), SQLError>,
    ) -> Result<bool, SQLError> { ... }
    fn visit_column_names_with_control(
        &self,
        table: &str,
        control: &ProductionControl<'_>,
        read: &mut dyn FnMut(&str) -> Result<(), SQLError>,
    ) -> Result<(), SQLError> { ... }
}

Required Methods§

Provided Methods§

Source

fn with_table_row_type_with_control( &self, table: &str, control: &ProductionControl<'_>, read: &mut dyn FnMut(&[ColumnDef]) -> Result<(), SQLError>, ) -> Result<bool, SQLError>

Lend the current row declaration without evaluating defaults or generated expressions.

Source

fn visit_column_names_with_control( &self, table: &str, control: &ProductionControl<'_>, read: &mut dyn FnMut(&str) -> Result<(), SQLError>, ) -> Result<(), SQLError>

Visit declared names without resolving DEFAULT or generated expressions. Native catalogs lend an immutable declaration generation without copying its payloads.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§