Skip to main content

compute_column_diff

Function compute_column_diff 

Source
pub fn compute_column_diff(
    table: &str,
    current: &[DeclaredColumnContract],
    target: &[CreateColumnDef],
) -> SchemaDiff
Expand description

Compute the column-level diff between a live current contract and a target list of CreateColumnDefs parsed from the embedded CREATE TABLE statement.