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

is "before image" supported? #785

Open
tirsen opened this issue Apr 24, 2023 · 3 comments
Open

is "before image" supported? #785

tirsen opened this issue Apr 24, 2023 · 3 comments

Comments

@tirsen
Copy link
Contributor

tirsen commented Apr 24, 2023

According to the MySQL documentation the row image before an update is also sent but I can't find it in this library. Is the "before image" supported?

I need it for a tool I'm working on: https://github.com/cashapp/cloner/

How hard would it be to add support if it's not already there? Any pointers are appreciated.

@lance6716
Copy link
Collaborator

It's supported, I remember the odd rows of update event family is before-image, and even rows are after-image.

@tirsen
Copy link
Contributor Author

tirsen commented Apr 24, 2023

You mean in the RowsEvent struct Rows field?

Rows [][]interface{}

@lance6716
Copy link
Collaborator

@tirsen Sorry for the late rely, yes it's Rows. You can use code snippet in README.md to see the content of the structure

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