Skip to main content

compile_detached_delete_effects

Function compile_detached_delete_effects 

Source
pub fn compile_detached_delete_effects(
    dialect: Dialect,
    schema: &AppSchema,
    name: &str,
    filter: &Predicate,
) -> Result<Vec<Statement>, DatabaseError>
Expand description

Lowers referential delete actions when an adapter temporarily detaches native constraints. Descendants are removed before their parents; the adapter verifies restrictive references before committing. Every predicate retains the ordinary typed parameter bindings.