MySQLCdcStreamSrcConn
class MySQLCdcStreamSrcConn(
uri: UriSpec,
credentials: CredentialsSpec,
server_id: int = DEFAULT_SERVER_ID,
entity_whitelist: EntityWhitelistSpec | None = None,
conn_cfg: CfgSpec | None = None,
)
Bases: Conn
Categories: source
MySQL CDC connection used by MySQLCdcStreamSrc.
Mirrors MySQLSrcConn for the SQLAlchemy / catalog introspection
side and adds server_id -- the unique replica identifier the
source uses for binlog replication. Each concurrent CDC connection
against the same MySQL must declare a distinct server_id;
collisions cause the source to disconnect one of the replicas. Not a
subclass of MySQLSrcConn -- CDC and batch SQL have different
operational guarantees (replication grants vs query permissions,
replica-id reservation).
Parameters
parameter
SQLAlchemy-style MySQL URI; accepts a plain string or a
Secret (see UriSpec).
parameter
entity_whitelistEntityWhitelistSpec | None (list[str] | None)Optional regex patterns narrowing discovery;
None (default) means no filtering.