Giter VIP home page Giter VIP logo

Comments (7)

rusuly avatar rusuly commented on July 24, 2024 2

@vinh3c
I think the event you are looking for is
RowsQueryEvent
See the docs for the repository on how to enable this event for MySQL or MariaDB

4.Optionally you can enable logging SQL queries that precede row based events and listen to RowsQueryEvent.

for MySQL:
binlog_rows_query_log_events = on

for MariaDB:
binlog_annotate_row_events = on

from mysqlcdc.

rusuly avatar rusuly commented on July 24, 2024 1

Hi,
I believe QueryEvent is written in binary log when DDL(alter table) operations are executed.
You can try and see if this event logs necessary information, extract the column information from the sql statement.

from mysqlcdc.

rusuly avatar rusuly commented on July 24, 2024 1

This lib is low level so parsing sql statements seems out of scope for the lib.
Also, unfortunately, currently I don't have time to support such high level abstractions

from mysqlcdc.

vinh3c avatar vinh3c commented on July 24, 2024 1
image image

I'm trying with that. I work for me
Thanks @rusuly

from mysqlcdc.

rusuly avatar rusuly commented on July 24, 2024 1

Ok, just be informed that QueryEvent and RowsQueryEvent are two different events. The first is used when statement-based replication is enabled. RowsQueryEvent is used when row-based replication is used and it requires some configuration in the config file

from mysqlcdc.

vinh3c avatar vinh3c commented on July 24, 2024

I known that, QueryEvent come after Unknow Event. But i think it better when we have native event for that
Thanks rusuly.

from mysqlcdc.

vinh3c avatar vinh3c commented on July 24, 2024

Thanks @rusuly

from mysqlcdc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.