BinaryLogParser

BinaryLogParser parses binary log files converted to text by mysqlbinlog.

Summary
BinaryLogParserBinaryLogParser parses binary log files converted to text by mysqlbinlog.
Variables
$binlog_line_1
$binlog_line_2
$binlog_line_2_rest
Functions
new
parse_eventParse binary log events returned by input callback.
_d

Variables

$binlog_line_1

my $binlog_line_1

$binlog_line_2

my $binlog_line_2

$binlog_line_2_rest

my $binlog_line_2_rest

Functions

new

sub new

Parameters

%argsArguments

Returns

BinaryLogParser object

parse_event

sub parse_event

Parse binary log events returned by input callback.  This sub implements a standard interface that the *Parser.pm modules share.  Each such module has a sub named “parse_event” that is expected to return one event each time it’s called.  Events are received from an input callback, $args{next_event}.  The events are chunks of text that this sub parses into a hashref representing the attributes and values of the event.

Parameters

%argsArguments

Required Arguments

next_eventCoderef that returns the text of the next event from the input
tellCoderef that tells the file position being read in the input

Optional Arguments

oktorunCoderef to tell caller that there are no more events

Returns

Hashref representing one event and its attributes and values

_d

sub _d
my $binlog_line_1
my $binlog_line_2
my $binlog_line_2_rest
sub new
sub parse_event
Parse binary log events returned by input callback.
sub _d
Close