[−][src]Crate mysql_binlog
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
fn main() { for event in mysql_binlog::parse_file("bin-log.000001").unwrap() { println!("{:?}", event.unwrap()); } }
Modules
binlog_file | |
column_types | |
errors | |
event | |
table_map | |
value |
Structs
BinlogEvent | A binlog event as returned by |
BinlogFileParserBuilder | Builder to configure Binary Log reading |
EventIterator | Iterator over |
Gtid | Global Transaction ID |
LogicalTimestamp |
Functions
parse_file | parse all events in the file living at a given path |
parse_reader | Parse events from an object implementing the |