pub fn invalidate_function_paths(
conn: &mut Connection,
function_id: i64,
) -> Result<()>Expand description
Invalidate all cached paths for a function
§Arguments
conn- Database connectionfunction_id- ID of the function to invalidate paths for
§Returns
Ok(()) on success, error on database failure
§Algorithm
- Begin transaction
- Delete path_elements first (FK dependency: elements reference paths)
- Delete paths
- Commit transaction
§Idempotent
Returns Ok(()) even if no paths exist for the function.