-
Notifications
You must be signed in to change notification settings - Fork 821
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
How to get column names of a table? #30
Comments
Hi. Unfortunately binary log is missing that piece of information so you'll have to use something like this. P.S. This a perfect place for questions. Don't worry. |
Thanks! 👍 I need the column names because I'm about to write a tool to replicate data from MySQL to MongoDB. I'll publish the tool to GitHub and let you know when it's ready, so that you can add it to the "Used by" section in readme.md. |
Here it is: |
Great. Please let me know when it's ready so that I would add it to the "Used by" section. Thank you. |
Thanks 👍 It's ready now. In the next version, I'll improve it a little bit as you advised at #32. |
Cool 👍. Added to the readme.md. |
this point must add |
In
TableMapEventData
I can get DB name, table name, column types etc. But there's no info about column names.How to get column names of a table? Is there a feature in mysql-binlog-connector-java to do that? Or must I use other tools like JDBC? It's very helpful if there's instruction about this in the README.
(Sorry this is a question. I don't know a better place to post it so I post it here.)
The text was updated successfully, but these errors were encountered: