Interface IPostgresCdcBuilder
Fluent builder interface for configuring Postgres CDC settings.
public interface IPostgresCdcBuilder : IPostgresCdcConnectionBuilder, IPostgresCdcProcessingBuilder, IPostgresCdcReplicationBuilder
- Inherited Members
- Extension Methods
Examples
cdc.UsePostgres(pg =>
{
pg.ConnectionString(connectionString)
.SchemaName("excalibur")
.StateTableName("cdc_state")
.ReplicationSlotName("my_slot")
.PublicationName("my_publication")
.PollingInterval(TimeSpan.FromSeconds(1))
.BatchSize(1000);
});
Remarks
This interface composes three focused sub-interfaces for consumers that need only a subset of capabilities:
- IPostgresCdcConnectionBuilder — Connection, config binding, and state store configuration.
- IPostgresCdcProcessingBuilder — Schema, table, polling, batch, and timeout settings.
- IPostgresCdcReplicationBuilder — Replication slot, publication, protocol, and processor identity.