Expand description
Parser for the MySQL binary log format.
§Limitations
- Targets Percona and Oracle MySQL 5.6 and 5.7. Has not been tested with MariaDB, MySQL 8.0, or older versions of MySQL
- Like all 5.6/5.7 MySQL implementations, UNSIGNED BIGINT cannot safely represent numbers between
2^63
and2^64
becausei64
is used internally for all integral data types
§Example
A simple command line event parser and printer
for event in mysql_binlog::parse_file("bin-log.000001").unwrap() {
println!("{:?}", event.unwrap());
}
Modules§
Structs§
- Binlog
Event - A binlog event as returned by
EventIterator
. Filters out internal events like the TableMapEvent and simplifies mapping GTIDs to individual events. - Binlog
File Parser Builder - Builder to configure Binary Log reading
- Event
Iterator - Iterator over
BinlogEvent
s - Gtid
- Global Transaction ID
- Logical
Timestamp
Functions§
- parse_
file - parse all events in the file living at a given path
- parse_
reader - Parse events from an object implementing the
std::io::Read
trait