Create mirror
POST api/v1/flows/cdc/create
This endpoint is used to create a CDC mirror.
Request Fields
Connection configuration
The name of the mirror to be created.
The name of the source peer (data store).
The name of the destination peer (data store).
Table mappings
The source table identifier.
The destination table identifier.
Columns from the source table to exclude, separated by commas.
For Clickhouse Only And Optional. Ordering key setting for Clickhouse target tables created by PeerDB.
Name of the column
A number indicating the rank of this column in the ordering key of ORDER BY in ReplacingMergeTree.
Whether to do an initial snapshot.
The maximum number of rows to sync in a batch.
How often the mirror syncs, in seconds.
The name of the publication to use. PeerDB will try to create a publication if not provided here.
The number of rows per partition to sync during the initial snapshot. Default is 1 million rows.
The maximum number of parallel workers to use during the initial snapshot.
The number of tables to sync in parallel during the initial snapshot.
Whether to resync the mirror. The mirror must be dropped before resyncing.
Whether to do only the initial snapshot and not perform CDC.
The name of the column that indicates a soft delete.
The name of the column that indicates when the row was last synced.
Response Fields
The ID of the parent workflow created for this mirror.