Table of Contents

Interface ISqlServerCdcDatabaseBuilder

Namespace
Excalibur.Cdc.SqlServer
Assembly
Excalibur.Cdc.SqlServer.dll

Defines the contract for configuring SQL Server CDC database-specific options including database naming, connection identifiers, capture instances, and missing handler behavior.

public interface ISqlServerCdcDatabaseBuilder

Methods

CaptureInstances(params string[])

Sets the CDC capture instances to process.

ISqlServerCdcBuilder CaptureInstances(params string[] captureInstances)

Parameters

captureInstances string[]

The capture instance names.

Returns

ISqlServerCdcBuilder

The builder for fluent chaining.

Exceptions

ArgumentNullException

Thrown when captureInstances is null.

DatabaseConnectionIdentifier(string)

Sets the unique identifier for the CDC source database connection.

ISqlServerCdcBuilder DatabaseConnectionIdentifier(string identifier)

Parameters

identifier string

The connection identifier.

Returns

ISqlServerCdcBuilder

The builder for fluent chaining.

Exceptions

ArgumentException

Thrown when identifier is null or whitespace.

DatabaseName(string)

Sets the database name for CDC processing.

ISqlServerCdcBuilder DatabaseName(string name)

Parameters

name string

The database name.

Returns

ISqlServerCdcBuilder

The builder for fluent chaining.

Exceptions

ArgumentException

Thrown when name is null or whitespace.

StateConnectionIdentifier(string)

Sets the unique identifier for the state store database connection.

ISqlServerCdcBuilder StateConnectionIdentifier(string identifier)

Parameters

identifier string

The connection identifier.

Returns

ISqlServerCdcBuilder

The builder for fluent chaining.

Exceptions

ArgumentException

Thrown when identifier is null or whitespace.

StopOnMissingTableHandler(bool)

Sets whether processing should stop when a table handler is missing.

ISqlServerCdcBuilder StopOnMissingTableHandler(bool stop)

Parameters

stop bool

true to stop on missing handlers; false to skip.

Returns

ISqlServerCdcBuilder

The builder for fluent chaining.