Skip to main content

extract_binlog_file_seq

Function extract_binlog_file_seq 

Source
pub fn extract_binlog_file_seq(file_name: &str) -> Option<u64>
Expand description

Extract the numeric sequence from a MySQL binlog file name <basename>.<sequence>.

The basename is configurable (binlog, mysql-bin, mysql-bin-changelog on RDS/Aurora, …), so we take the number after the last . rather than assuming a fixed prefix.