tabsdatak.conn.postgres
CdcColumnsFormatSpec | Layout of the change-values payload on each emitted row: one of "columns", "struct" or "map". |
CdcSrcCfgKey | |
CdcSrcCfgSpec | |
CredentialsSpec | The credential type for Postgres connections: UserPassword (user + password), spliced into the URI by the engine factory. |
DestCfgKey | |
DestCfgSpec | |
IfTableExistsSpec | Write disposition when the target table exists: "append" adds rows; "replace" truncates before insert. |
LsnPosition | CDC start position: a WAL Log Sequence Number. |
PostgresCdcStartFromSpec | Where a Postgres CDC stream begins: a "head" / "tail" keyword or an LsnPosition. |
PostgresCdcStreamSrc | Postgres CDC stream source for @stream_publisher. |
PostgresCdcStreamSrcConn | Postgres CDC connection used by PostgresCdcStreamSrc. |
PostgresDest | Postgres destination for @subscriber -- one target table per slot. |
PostgresDestConn | Postgres connection used by PostgresDest. |
PostgresSrc | Postgres source for @publisher -- one output slot per query. |
PostgresSrcConn | Postgres connection used by PostgresSrc. |
PostgresTableNameSpec | A Postgres table name -- table, schema.table or database.schema.table (at most three dot-separated parts). |
PostgresTableNamesSpec | A list of Postgres table names (see PostgresTableNameSpec). |
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 retained on the replication slot; "tail" skips to the current WAL position (only changes made after the stream starts are emitted). |
ReplicationSlotBehaviorSpec | Logical replication slot strategy: "reuse" (default) requires the named slot to already exist; "create" creates it, doing nothing if it already exists. |
SrcCfgKey | |
SrcCfgSpec | |
UriSpec | A SQLAlchemy-style Postgres URI, e.g. |
Wal2JsonFormatVersionSpec | wal2json output-plugin format version: 2 (default, per-action messages with explicit begin/commit framing) or 1 (the older whole-transaction batch payload). |
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['postgres.cdc.blocking_timeout_seconds', 'postgres.cdc.logging_level', 'postgres.cdc.wal2json_format_version', '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['postgres.cdc.blocking_timeout_seconds', 'postgres.cdc.logging_level', 'postgres.cdc.wal2json_format_version', '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 Postgres connections: UserPassword (user
- password), spliced into the URI by the engine factory.
DestCfgKey
type_aliasDestCfgKey: Literal['postgres.logging_level', 'tabsdata.sql.write_engine', 'tabsdata.sql.chunk_size']
DestCfgSpec
type_aliasDestCfgSpec: Mapping[DestCfgKey, Any]
Resolved type:
Mapping[Literal['postgres.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.
PostgresCdcStartFromSpec
type_aliasPostgresCdcStartFromSpec: Union[RelativePositionSpec, LsnPosition]
Resolved type:
Literal['head', 'tail'] | LsnPosition
Where a Postgres CDC stream begins: a "head" / "tail" keyword
or an LsnPosition.
PostgresTableNameSpec
type_aliasPostgresTableNameSpec: str
A Postgres table name -- table, schema.table or
database.schema.table (at most three dot-separated parts). Parts may
be double-quoted, using the doubled double-quote convention to embed a
literal quote.
PostgresTableNamesSpec
type_aliasPostgresTableNamesSpec: list[PostgresTableNameSpec]
Resolved type:
list[str]
A list of Postgres table names (see PostgresTableNameSpec).
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 retained on the replication slot; "tail" skips to the current
WAL position (only changes made after the stream starts are emitted).
ReplicationSlotBehaviorSpec
type_aliasReplicationSlotBehaviorSpec: Literal['create', 'reuse']
Logical replication slot strategy: "reuse" (default) requires the
named slot to already exist; "create" creates it, doing nothing if it
already exists.
SrcCfgKey
type_aliasSrcCfgKey: Literal['postgres.logging_level', 'tabsdata.sql.read_engine', 'tabsdata.sql.chunk_size', 'tabsdata.src_metadata.drop']
SrcCfgSpec
type_aliasSrcCfgSpec: Mapping[SrcCfgKey, Any]
Resolved type:
Mapping[Literal['postgres.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 Postgres URI, e.g.
postgres+psycopg2://host:port/db. The scheme must be postgres or
postgresql (an optional +driver is allowed). Accepts a plain
string or a Secret.
Wal2JsonFormatVersionSpec
type_aliasWal2JsonFormatVersionSpec: Literal[1, 2]
wal2json output-plugin format version: 2 (default, per-action
messages with explicit begin/commit framing) or 1 (the older
whole-transaction batch payload).