tabsdatak.conn.db2
CdcColumnsFormatSpec | Layout of the change-values payload on each emitted row: one of "columns", "struct" or "map". |
CdcSrcCfgKey | |
CdcSrcCfgSpec | |
CommitSeqPosition | CDC start position: one global commit sequence for every table. |
CredentialsSpec | The credential type for Db2 connections: UserPassword (user + password), spliced into the URI by the engine factory. |
Db2CdcStartFromSpec | Where a Db2 CDC stream begins: a "head" / "tail" keyword, a CommitSeqPosition, a TableCommitSeqPosition or a TimestampPosition. |
Db2CdcStreamSrc | Db2 CDC stream source for @stream_publisher. |
Db2CdcStreamSrcConn | Db2 CDC connection used by Db2CdcStreamSrc. |
Db2Dest | Db2 destination for @subscriber -- one target table per slot. |
Db2DestConn | Db2 connection used by Db2Dest. |
Db2Src | Db2 source for @publisher -- one output slot per query. |
Db2SrcConn | Db2 connection used by Db2Src. |
Db2TableNameSpec | A Db2 table name, either table or schema.table (at most two dot-separated parts). |
Db2TableNamesSpec | A list of Db2 table names (see Db2TableNameSpec). |
DestCfgKey | |
DestCfgSpec | |
IfTableExistsSpec | Write disposition when the target table exists: "append" adds rows; "replace" truncates before insert. |
QueriesSpec | A non-empty, ordered list of SELECT statements -- one output slot per query. |
RelativePositionSpec | Relative CDC start position: "head" rewinds to the oldest row still retained in each tracked CD table; "tail" skips to each CD table's current watermark (only later changes are emitted). |
SrcCfgKey | |
SrcCfgSpec | |
TableCommitSeqPosition | CDC start position: independent commit sequence per table. |
TimestampPosition | CDC start position given as a wall-clock timestamp. |
UriSpec | A SQLAlchemy-style Db2 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['db2.cdc.blocking_timeout_seconds', 'db2.cdc.fetch_size', 'db2.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['db2.cdc.blocking_timeout_seconds', 'db2.cdc.fetch_size', 'db2.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 Db2 connections: UserPassword (user +
password), spliced into the URI by the engine factory.
Db2CdcStartFromSpec
type_aliasDb2CdcStartFromSpec: Union[RelativePositionSpec, CommitSeqPosition, TableCommitSeqPosition, TimestampPosition]
Resolved type:
Literal['head', 'tail'] | CommitSeqPosition | TableCommitSeqPosition | TimestampPosition
Where a Db2 CDC stream begins: a "head" / "tail" keyword, a
CommitSeqPosition, a TableCommitSeqPosition or a
TimestampPosition.
Db2TableNameSpec
type_aliasDb2TableNameSpec: str
A Db2 table name, either table or schema.table (at most two
dot-separated parts). Parts may be double-quoted, using the doubled
double-quote convention to embed a literal quote.
Db2TableNamesSpec
type_aliasDb2TableNamesSpec: list[Db2TableNameSpec]
Resolved type:
list[str]
A list of Db2 table names (see Db2TableNameSpec).
DestCfgKey
type_aliasDestCfgKey: Literal['db2.logging_level', 'tabsdata.sql.write_engine', 'tabsdata.sql.chunk_size']
DestCfgSpec
type_aliasDestCfgSpec: Mapping[DestCfgKey, Any]
Resolved type:
Mapping[Literal['db2.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.
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 row
still retained in each tracked CD table; "tail" skips to each CD
table's current watermark (only later changes are emitted).
SrcCfgKey
type_aliasSrcCfgKey: Literal['db2.logging_level', 'tabsdata.sql.read_engine', 'tabsdata.sql.chunk_size', 'tabsdata.src_metadata.drop']
SrcCfgSpec
type_aliasSrcCfgSpec: Mapping[SrcCfgKey, Any]
Resolved type:
Mapping[Literal['db2.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 Db2 URI, e.g. db2+ibm_db://host:port/db. The
scheme must be db2 or ibm_db_sa (an optional +driver is
allowed). Accepts a plain string or a Secret.