Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FK relationship #27

Closed
nrajagopal opened this issue Jan 20, 2015 · 1 comment
Closed

FK relationship #27

nrajagopal opened this issue Jan 20, 2015 · 1 comment

Comments

@nrajagopal
Copy link

How to get notification for tables having fk realtionship like on delete cascade etc..

@shyiko
Copy link
Owner

shyiko commented Jan 26, 2015

Hello.

Short answer: you don't. You won't find anything in the binary log to help you with that.
But... you can always read the schema in and watch for changes on table(s) defining FKs. For example, in case of ON DELETE CASCADE (let's say, table "a" references table "b") you could listen for EXT_DELETE_ROWS event on "a" and use that to get an id of linked "b" record.

@shyiko shyiko closed this as completed Jan 26, 2015
fivetran-mattalexander pushed a commit to fivetran/mysql-binlog-connector-java that referenced this issue Jan 27, 2021
Add Auth Plugin Name to for native password auth to fix Azure connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants