Skip to main content

Module gtid

Module gtid 

Source
Expand description

MySQL GTID (Global Transaction Identifier) type.

GTIDs uniquely identify transactions across a MySQL replication topology. Format: source_id:transaction_id where source_id is a UUID.

§Examples

use laminar_connectors::cdc::mysql::Gtid;

let gtid: Gtid = "3E11FA47-71CA-11E1-9E33-C80AA9429562:23".parse().unwrap();
assert_eq!(gtid.transaction_id(), 23);

Structs§

Gtid
A MySQL Global Transaction Identifier (GTID).
GtidRange
A range of transaction IDs for a single source.
GtidSet
A set of GTIDs representing a position in the replication stream.

Enums§

GtidParseError
Errors from parsing GTID strings.