BinLogStreamReader

class pymysqlreplication.binlogstream.BinLogStreamReader(connection_settings, server_id, ctl_connection_settings=None, resume_stream=False, blocking=False, only_events=None, log_file=None, log_pos=None, filter_non_implemented_events=True, ignored_events=None, auto_position=None, only_tables=None, only_schemas=None, freeze_schema=False, skip_to_timestamp=None, report_slave=None, slave_uuid=None, pymysql_wrapper=None, fail_on_table_metadata_unavailable=False, slave_heartbeat=None)[source]

Connect to replication stream and read event

class pymysqlreplication.binlogstream.ReportSlave(value)[source]

Represent the values that you may report when connecting as a slave to a master. SHOW SLAVE HOSTS related

encoded(server_id, master_id=0)[source]

server_id: the slave server-id master_id: usually 0. Appears as “master id” in SHOW SLAVE HOSTS

on the master. Unknown what else it impacts.