(
pk_table: pw.Table,
pk_columns: dict[str, api.Value],
order: int,
insertion: bool,
row: dict[str, api.Value],
instance: api.Value | None = None,
)
| 179 | |
| 180 | @staticmethod |
| 181 | def create( |
| 182 | pk_table: pw.Table, |
| 183 | pk_columns: dict[str, api.Value], |
| 184 | order: int, |
| 185 | insertion: bool, |
| 186 | row: dict[str, api.Value], |
| 187 | instance: api.Value | None = None, |
| 188 | ) -> DiffEntry: |
| 189 | key = DiffEntry.create_id_from(pk_table, pk_columns, instance=instance) |
| 190 | return DiffEntry(key, order, insertion, row) |
| 191 | |
| 192 | def final_cleanup_entry(self): |
| 193 | return DiffEntry(self.key, self.order + 1, False, self.row) |