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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".