Debezium 不捕获 'cascade delete'

Debezium does not capture 'cascade delete'

有什么方法可以捕获 'on delete cascade' 事件吗? 我已在 Debezium faq(页面底部)中阅读:

== Why don't I see DELETE events in some cases?

This may be caused by the usage of CASCADE DELETE statements. In this case the deletion events generated by the database https://dev.mysql.com/doc/refman/5.7/en/innodb-and-mysql-replication.html [are not part of the binlog] and thus cannot be captured by Debezium.

我很欣赏 'ON UPDATE CASCADE'

的类似行为

如果该事件不是 binlog 的一部分,我知道 Debezium 无法捕获它,但是,是否有任何简单的替代方法来做到这一点?在数据库中这是非常重要的。

我能想到的唯一解决方案是将级联操作替换为将根据需要执行 delete/update 的触发器。