Skip to main content

stored_columns_for_update

Function stored_columns_for_update 

Source
pub fn stored_columns_for_update(
    columns: &[ColumnDef],
    updated_columns: &[String],
) -> Vec<String>
Expand description

Stored expressions affected by an UPDATE’s target columns. Explicitly assigning an unchanged input still selects its dependents; assigning a generated column to DEFAULT does not select it by itself. Callers with BEFORE ROW UPDATE triggers must recompute every stored expression instead.