Skip to content

get JSON representation of binlog's WriteRowsEvent #65

@docteurklein

Description

@docteurklein

Hello :)

I'm trying to push mysql binlog events into a postgres table (weird, I know :)).
To do that I'd like to get a JSON representation of the before and after values.

Here is the current code: https://github.com/docteurklein/pgpim/blob/master/rust/src/main.rs#L74
Any idea how to do that?
I wonder if impl TryFrom<BinlogRow> for Row
would do the trick, since Row seems to be serializable in json?
If so, how would you use this API?

Thanks for reading :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions