Skip to main content

validate_drop_column

Function validate_drop_column 

Source
pub fn validate_drop_column(
    columns: &[ColumnDef],
    table: &str,
    column: &str,
    if_exists: bool,
) -> Result<bool, SQLError>
Expand description

Check a DROP target before dependency traversal. Missing IF EXISTS targets return false so execution can publish its notice without changing the relation.