Replication API Function Reference

All functions in the Binlog/Replication API are defined in include/mariadb_rpl.h

The Binlog/Replication API provides a low‑level interface for consuming and processing binary log events from a MariaDB server. It allows applications to configure replication handles, open streams, fetch and decode events, and manage errors.

Together, these functions enable developers to build custom replication clients and event processing tools.

Function Overview

Function
Description

Allocates and initializes a replication handle

Sets options on a replication handle

Retrieves the current value of a replication handle option

Opens a binary log stream and registers the client as a replica

Fetches the next event from a binary log stream

Frees memory allocated for an event

Extracts a list of rows from a row event

Returns the error number for the last Binlog API call

Returns the error message for the last Binlog API call

Closes a binary log stream and frees the replication handle

See Also

Last updated

Was this helpful?