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 PostgresDataEngineBuilderExtensionsInheritance
Section titled “Inheritance”object ← PostgresDataEngineBuilderExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”builder EngineBuilder
The engine builder to extend.
configure Action<PostgresDataOptions>
The callback that configures the host-owned PostgreSQL pack options, including
Returns
Section titled “Returns”The same engine builder for fluent composition.