I am looking to integrate this binlog event parser with mysql_async. You can read more about that in this issue. I also built a runnable test which is referenced in the issue.
For that, I thought it would be useful to expose a processing function for enriching raw event with the tableMap. Essentially exposing the internal processing of the EventIterator.
If you are interested in this PR, I am happy for work on it further. I could also imagine a simpler API, e.g.
let binlog_stream = BinlogStream::new(conn); // registers a mysql_async connection for binlog events
while let Some(event) = binlog_stream.next().await? {
println!("got = {}", event); // ready to use BinlogEvent (with TableMap processing)
}
I am sorry that my IDE reformatted all the code. I am happy to clean that up, if you want to proceed with this PR.
I am looking to integrate this binlog event parser with
mysql_async
. You can read more about that in this issue. I also built a runnable test which is referenced in the issue.For that, I thought it would be useful to expose a processing function for enriching raw event with the tableMap. Essentially exposing the internal processing of the EventIterator.
If you are interested in this PR, I am happy for work on it further. I could also imagine a simpler API, e.g.
I am sorry that my IDE reformatted all the code. I am happy to clean that up, if you want to proceed with this PR.