pub trait TruncateCatalog {
// Required methods
fn try_resolve_visible_relation_kind(
&self,
name: &str,
) -> Result<Option<(String, &'static str)>, SQLError>;
fn is_partitioned(&self, table: &str) -> Result<bool, String>;
fn hierarchy_scan_tables(
&self,
table: &str,
descendants: bool,
) -> Result<Vec<String>, SQLError>;
fn referrers_to(&self, table: &str) -> Result<Vec<String>, String>;
}Expand description
Catalog metadata required to bind a TRUNCATE target set.
Required Methods§
fn try_resolve_visible_relation_kind( &self, name: &str, ) -> Result<Option<(String, &'static str)>, SQLError>
fn is_partitioned(&self, table: &str) -> Result<bool, String>
fn hierarchy_scan_tables( &self, table: &str, descendants: bool, ) -> Result<Vec<String>, SQLError>
fn referrers_to(&self, table: &str) -> Result<Vec<String>, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".