Giter Site home page Giter Site logo

Comments (8)

rusuly avatar rusuly commented on May 22, 2024 2

My pleasure,
Basically, the lib serves the same purpose as mysql-binlog-connector-java
We should make it more flexible but high-level API should be implemented by specific companies/libraries per their needs.
Feel free to provide feedback.

from mysqlcdc.

rusuly avatar rusuly commented on May 22, 2024 1

This is a really reasonable question.
Maybe the lib should support it, but definitely not in v1,
In first version I'm going to include low-level things like SSL encryption, replication

from mysqlcdc.

rusuly avatar rusuly commented on May 22, 2024

Hello,

MariaDB was branched from MySQL 5.5 which doesn't include column names(or any column identifiers) in binary log.
Column names metadata was added later in MySQL 5.6 and wasn't included in MariaDB.
The only way as I see it to get column names in MariaDB is to retrieve them using SQL query like this:

    select TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, ORDINAL_POSITION
    from INFORMATION_SCHEMA.COLUMNS
    where TABLE_NAME='AspNetUsers' and TABLE_SCHEMA='Identity'
    order by ORDINAL_POSITION;

The query result will show columns in the same order as they are logged in the binlog

from mysqlcdc.

yang-xiaodong avatar yang-xiaodong commented on May 22, 2024

Thanks for your quick reply, I got it.

Is there any plan to provide a easily API to get column names in the future versions, I think MySqlCdc
can execute the sql queries and cache it, maybe also need to update the cache when column changed, what do you think? this is just a suggestion

from mysqlcdc.

rusuly avatar rusuly commented on May 22, 2024

This is a good idea, but I think the library should be a low-level connector. I think that for high-level API with caching features there has to be a separate library that uses MySqlCdc. Different companies may have different use cases

from mysqlcdc.

yang-xiaodong avatar yang-xiaodong commented on May 22, 2024

If the goal of MySqlCdc is low-level connector, I definitely agree with you~

Thanks again, cheers~

from mysqlcdc.

rusuly avatar rusuly commented on May 22, 2024

Looks like table metadata will be supported in MariaDB 10.5 when it is released
See binlog_row_metadata

from mysqlcdc.

songhejia avatar songhejia commented on May 22, 2024

I really hope to have it .

My pleasure,
Basically, the lib serves the same purpose as mysql-binlog-connector-java
We should make it more flexible but high-level API should be implemented by specific companies/libraries per their needs.
Feel free to provide feedback.

I really hope to have it .

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.