Skip to main content

ConstraintCatalog

Trait ConstraintCatalog 

Source
pub trait ConstraintCatalog: ConflictCatalog {
    // Required methods
    fn try_unique_columns(&self, table: &str) -> Result<Vec<String>, String>;
    fn try_check_constraint_definitions(
        &self,
        table: &str,
    ) -> Result<Vec<TableCheck>, String>;
    fn try_foreign_keys(&self, table: &str) -> Result<Vec<ForeignKey>, String>;
    fn column_type(
        &self,
        table: &str,
        column: &str,
    ) -> Result<Option<ColumnType>, String>;
    fn hierarchy_scan_tables(
        &self,
        table: &str,
        descendants: bool,
    ) -> Result<Vec<String>, SQLError>;
}

Required Methods§

Source

fn try_unique_columns(&self, table: &str) -> Result<Vec<String>, String>

Source

fn try_check_constraint_definitions( &self, table: &str, ) -> Result<Vec<TableCheck>, String>

Source

fn try_foreign_keys(&self, table: &str) -> Result<Vec<ForeignKey>, String>

Source

fn column_type( &self, table: &str, column: &str, ) -> Result<Option<ColumnType>, String>

Source

fn hierarchy_scan_tables( &self, table: &str, descendants: bool, ) -> Result<Vec<String>, SQLError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§