Skip to content

Class PostgresDataEngineBuilderExtensions

Namespace: Cephalon.Data.Postgres.Registration
Assembly: Cephalon.Data.Postgres.dll

Registers the PostgreSQL logical-replication CDC companion pack with an .

public static class PostgresDataEngineBuilderExtensions

objectPostgresDataEngineBuilderExtensions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

AddPostgresData(EngineBuilder, string, string, Action<PostgresDataOptions>?)

Section titled “ AddPostgresData(EngineBuilder, string, string, Action<PostgresDataOptions>?)”

Adds the PostgreSQL logical-replication CDC pack with the supplied connection string and database name.

public static EngineBuilder AddPostgresData(this EngineBuilder builder, string connectionString, string databaseName, Action<PostgresDataOptions>? configure = null)

builder EngineBuilder

The engine builder to extend.

connectionString string

The PostgreSQL connection string.

databaseName string

The operator-facing database name.

configure Action<PostgresDataOptions>?

An optional callback that configures the host-owned PostgreSQL pack options.

EngineBuilder

The same engine builder for fluent composition.

AddPostgresData(EngineBuilder, Action<PostgresDataOptions>)

Section titled “ AddPostgresData(EngineBuilder, Action<PostgresDataOptions>)”

Adds the PostgreSQL logical-replication CDC pack using an options callback that can bind from configuration.

public static EngineBuilder AddPostgresData(this EngineBuilder builder, Action<PostgresDataOptions> configure)

builder EngineBuilder

The engine builder to extend.

configure Action<PostgresDataOptions>

The callback that configures the host-owned PostgreSQL pack options, including , , and .

EngineBuilder

The same engine builder for fluent composition.