Skip to main content

Cascade

Goal

Use cascade when

  • Anonymizing one or more entries in your database across multiple tables. E.g. a "Forget me"- request
  • Subsetting a database and you want to maintain consistency

Cascade is used both in deletetasks and erase tasks

  • In erase tasks cascade can be used to either delete or mask child table entries
  • in deletetasks cascade can only delete child table entries

Use cases for cascade

Use cascade when

  • Entries in child tables must be deleted to maintain database consistency
  • Entries in child tables must be anonymized

Ano Structure and Examples

task <task-name> {
<task Type> <table> <where clause>
cascade <distribution>
table <parent-table>
child <foreign-key>
parent <key>
}