Skip to content

get_binlog_stream, detect if a col is a primary key #335

Answered by blackbeam
timglabisch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. At the moment this info is not collected during BinlogRow deserialization. I think it clould be easily added into impl MyDeserialize for BinlogRow somewhere near to other flags deserialization.

For now, I believe, you can read it from TableMapEvent using iter_optional_meta – variants of interest are SimplePrimaryKey and PrimaryKeyWithPrefix. Description is here

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by timglabisch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants