Class PostgreSqlOptions
- Namespace
- Pipelinez.PostgreSql.Configuration
- Assembly
- Pipelinez.PostgreSql.dll
Provides shared PostgreSQL connection and serialization settings used by PostgreSQL transport components.
public abstract class PostgreSqlOptions
- Inheritance
-
PostgreSqlOptions
- Derived
- Inherited Members
Properties
CommandTimeoutSeconds
Gets or sets the default command timeout in seconds for PostgreSQL commands executed by the transport.
public int? CommandTimeoutSeconds { get; init; }
Property Value
- int?
ConfigureConnectionString
Gets or sets an optional callback that can customize the Npgsql.NpgsqlConnectionStringBuilder before the data source is built.
public Action<NpgsqlConnectionStringBuilder>? ConfigureConnectionString { get; init; }
Property Value
- Action<NpgsqlConnectionStringBuilder>
ConfigureDataSource
Gets or sets an optional callback that can customize the Npgsql.NpgsqlDataSourceBuilder before the data source is built.
public Action<NpgsqlDataSourceBuilder>? ConfigureDataSource { get; init; }
Property Value
- Action<NpgsqlDataSourceBuilder>
ConnectionString
Gets or sets the connection string used when the transport builds its own Npgsql.NpgsqlDataSource.
public string? ConnectionString { get; init; }
Property Value
DataSource
Gets or sets an externally owned Npgsql.NpgsqlDataSource to use for command execution.
public NpgsqlDataSource? DataSource { get; init; }
Property Value
- NpgsqlDataSource
Remarks
When provided, ConnectionString, ConfigureConnectionString, and ConfigureDataSource must not also be supplied.
EnableSensitiveLogging
Gets or sets a value indicating whether parameter logging should be enabled when the transport builds its own data source.
public bool EnableSensitiveLogging { get; init; }
Property Value
SerializerOptions
Gets or sets the JSON serializer options used by generated JSON mappings.
public JsonSerializerOptions SerializerOptions { get; init; }