MySQL :: MySQL 8.0 C API Developer Guide :: 10.4.2 mysql_binlog_fetch() (original) (raw)
The world's most popular open source database
10.4.2 mysql_binlog_fetch()
int
mysql_binlog_fetch(MYSQL *mysql,
MYSQL_RPL *rpl)
Description
Fetch one event from the replication event stream.
Arguments:
mysql
: The connection handler returned from mysql_init().rpl
: The replication stream structure. After a successful call, thesize
member indicates the event size, which is 0 for an EOF event. For a non-EOF event,size
is greater than 0 and thebuffer
member points to the event contents.
Return Values
Zero for success. Nonzero if an error occurred.