Skip to main content

compile_delete_effects

Function compile_delete_effects 

Source
pub fn compile_delete_effects(
    dialect: Dialect,
    schema: &AppSchema,
    mutation: &Mutation,
    generated_ids: &[Option<i64>],
) -> Result<Vec<Statement>, DatabaseError>
Expand description

Keeps JSON relationship values synchronized when native constraints null their keys. The caller executes these bounded statements in the same transaction as deletion.