pub trait MutationRowCatalog: Sync {
// Required methods
fn column_definitions(
&self,
table: &str,
) -> Result<Option<Vec<ColumnDef>>, String>;
fn column_names(&self, table: &str) -> Result<Vec<String>, String>;
fn view_schema(&self, name: &str) -> Result<RowSchema, SQLError>;
// Provided method
fn visit_column_names_with_control(
&self,
table: &str,
control: &ProductionControl<'_>,
read: &mut dyn FnMut(&str) -> Result<(), SQLError>,
) -> Result<(), SQLError> { ... }
}Expand description
Relation metadata observed by mutation row construction.
Required Methods§
fn column_definitions( &self, table: &str, ) -> Result<Option<Vec<ColumnDef>>, String>
fn column_names(&self, table: &str) -> Result<Vec<String>, String>
fn view_schema(&self, name: &str) -> Result<RowSchema, SQLError>
Provided Methods§
Sourcefn visit_column_names_with_control(
&self,
table: &str,
control: &ProductionControl<'_>,
read: &mut dyn FnMut(&str) -> Result<(), SQLError>,
) -> Result<(), SQLError>
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".