tabsdatak.conn.mysql
BinlogPosition | CDC start position: a binlog file + byte offset. |
CdcColumnsFormatSpec | Layout of the change-values payload on each emitted row: one of "columns", "struct" or "map". |
CdcSrcCfgKey | |
CdcSrcCfgSpec | |
CredentialsSpec | The credential type for MySQL connections: UserPassword (user + password), spliced into the URI by the engine factory. |
DEFAULT_SERVER_ID | Default MySQL replica server_id for the binlog stream (512). |
DestCfgKey | |
DestCfgSpec | |
GtidPosition | CDC start position: a MySQL Global Transaction ID. |
IfTableExistsSpec | Write disposition when the target table exists: "append" adds rows; "replace" truncates before insert. |
MySQLCdcStartFromSpec | Where a MySQL CDC stream begins: a "head" / "tail" keyword, a GtidPosition, a BinlogPosition or a TimestampPosition. |
MySQLCdcStreamSrc | MySQL CDC stream source for @stream_publisher. |
MySQLCdcStreamSrcConn | MySQL CDC connection used by MySQLCdcStreamSrc. |
MySQLDest | MySQL destination for @subscriber -- one target table per slot. |
MySQLDestConn | MySQL connection used by MySQLDest. |
MySQLSrc | MySQL source for @publisher -- one output slot per query. |
MySQLSrcConn | MySQL connection used by MySQLSrc. |
MySQLTableNameSpec | A MySQL table name, either table or database.table (at most two dot-separated parts). |
MySQLTableNamesSpec | A list of MySQL table names (see MySQLTableNameSpec). |
QueriesSpec | A non-empty, ordered list of SELECT statements -- one output slot per query. |
RelativePositionSpec | Relative CDC start position: "head" rewinds to the oldest change still in binlog retention; "tail" skips to the live edge (only later changes are emitted). |
SrcCfgKey | |
SrcCfgSpec | |
TimestampPosition | CDC start position given as a wall-clock timestamp. |
UriSpec | A SQLAlchemy-style MySQL URI, e.g. |
CdcColumnsFormatSpec
type_aliasCdcColumnsFormatSpec: Literal['columns', 'struct', 'map']
Layout of the change-values payload on each emitted row: one of
"columns", "struct" or "map".
CdcSrcCfgKey
type_aliasCdcSrcCfgKey: Literal['mysql.cdc.blocking_timeout_seconds', 'mysql.cdc.logging_level', 'tabsdata.cdc.buffer.max_rows', 'tabsdata.cdc.buffer.max_bytes', 'tabsdata.cdc.buffer.max_secs', 'tabsdata.cdc.trigger.max_rows', 'tabsdata.cdc.trigger.max_bytes', 'tabsdata.cdc.trigger.max_secs', 'tabsdata.cdc.poll_interval_seconds']
CdcSrcCfgSpec
type_aliasCdcSrcCfgSpec: Mapping[CdcSrcCfgKey, Any]
Resolved type:
Mapping[Literal['mysql.cdc.blocking_timeout_seconds', 'mysql.cdc.logging_level', 'tabsdata.cdc.buffer.max_rows', 'tabsdata.cdc.buffer.max_bytes', 'tabsdata.cdc.buffer.max_secs', 'tabsdata.cdc.trigger.max_rows', 'tabsdata.cdc.trigger.max_bytes', 'tabsdata.cdc.trigger.max_secs', 'tabsdata.cdc.poll_interval_seconds'], Any]
CredentialsSpec
type_aliasCredentialsSpec: UserPassword
The credential type for MySQL connections: UserPassword (user +
password), spliced into the URI by the engine factory.
DEFAULT_SERVER_ID
constantDEFAULT_SERVER_ID = 512
Default MySQL replica server_id for the binlog stream (512). Each
concurrent CDC replica must use a unique id across the cluster.
DestCfgKey
type_aliasDestCfgKey: Literal['mysql.logging_level', 'tabsdata.sql.write_engine', 'tabsdata.sql.chunk_size']
DestCfgSpec
type_aliasDestCfgSpec: Mapping[DestCfgKey, Any]
Resolved type:
Mapping[Literal['mysql.logging_level', 'tabsdata.sql.write_engine', 'tabsdata.sql.chunk_size'], Any]
IfTableExistsSpec
type_aliasIfTableExistsSpec: Literal['append', 'replace']
Write disposition when the target table exists: "append" adds
rows; "replace" truncates before insert.
MySQLCdcStartFromSpec
type_aliasMySQLCdcStartFromSpec: Union[RelativePositionSpec, GtidPosition, BinlogPosition, TimestampPosition]
Resolved type:
Literal['head', 'tail'] | GtidPosition | BinlogPosition | TimestampPosition
Where a MySQL CDC stream begins: a "head" / "tail" keyword, a
GtidPosition, a BinlogPosition or a TimestampPosition.
MySQLTableNameSpec
type_aliasMySQLTableNameSpec: str
A MySQL table name, either table or database.table (at most
two dot-separated parts). Parts may be backtick-quoted, using the
doubled-backtick convention to embed a literal backtick.
MySQLTableNamesSpec
type_aliasMySQLTableNamesSpec: list[MySQLTableNameSpec]
Resolved type:
list[str]
A list of MySQL table names (see MySQLTableNameSpec).
QueriesSpec
type_aliasQueriesSpec: list[str]
A non-empty, ordered list of SELECT statements -- one output slot per query.
RelativePositionSpec
type_aliasRelativePositionSpec: Literal['head', 'tail']
Relative CDC start position: "head" rewinds to the oldest change
still in binlog retention; "tail" skips to the live edge (only later
changes are emitted).
SrcCfgKey
type_aliasSrcCfgKey: Literal['mysql.logging_level', 'tabsdata.sql.read_engine', 'tabsdata.sql.chunk_size', 'tabsdata.src_metadata.drop']
SrcCfgSpec
type_aliasSrcCfgSpec: Mapping[SrcCfgKey, Any]
Resolved type:
Mapping[Literal['mysql.logging_level', 'tabsdata.sql.read_engine', 'tabsdata.sql.chunk_size', 'tabsdata.src_metadata.drop'], Any]
UriSpec
type_aliasUriSpec: StrOrSecretSpec
Resolved type:
str | Secret
A SQLAlchemy-style MySQL URI, e.g.
mysql+mysqlconnector://host:port/db. The scheme must be mysql or
mariadb (an optional +driver is allowed). Accepts a plain string
or a Secret.