Comments (8)
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.
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.
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.
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.
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.
If the goal of MySqlCdc is low-level connector, I definitely agree with you~
Thanks again, cheers~
from mysqlcdc.
Looks like table metadata will be supported in MariaDB 10.5 when it is released
See binlog_row_metadata
from mysqlcdc.
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)
- support for binlog-do-db/binlog-ignore-db HOT 6
- There is a question about missing transactions HOT 13
- hope to support semi-sync-replication HOT 4
- MaxScale BinLog Server compatibility like maxwell discussion HOT 1
- Empty VARCHAR data column value and JSON data column inner string field value is parsed as null out of MySQL binlog. HOT 12
- Implement v2.0
- no UpdateRowsEvent\DeleteRowsEvent only QueryEvent HOT 2
- Is it possible to get the logs for a specific table? HOT 7
- [Question] TableMapEvent.TableMetaData.ColumnNames returns null HOT 7
- update row event,but ColumnsPresentBeforeUpdate and ColumnsPresentAfterUpdate is same ? HOT 2
- Could not receive a master heartbeat within the specified interval HOT 3
- binlog_row_metadata existence HOT 1
- Add support for USER_VAR_EVENT
- TableMetadata.ColumnNames is null HOT 2
- can't find TableId from INFORMATION_SCHEMA.TABLES. HOT 2
- Support Event To Detect Column Changes For Mysql:5.7 HOT 7
- Parsing opaque values in JSON
- Implement SSL strategies HOT 3
- use Production Environment HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysqlcdc.