Table of Contents

Class PostgresConnectionSettings

Namespace
MailFathom.Infrastructure.Persistence.Connections
Assembly
MailFathom.Infrastructure.dll

Names where the PostgreSQL connection string and its password come from.

public sealed record PostgresConnectionSettings : IEquatable<PostgresConnectionSettings>
Inheritance
PostgresConnectionSettings
Implements
Inherited Members

Remarks

The three sources are deliberately independent settings rather than one switch, because a deployment picks the shape its provisioning system already has. Supplying a password twice is rejected during composition; supplying no connection string at all is rejected there too.

Constructors

PostgresConnectionSettings(string?, ConfiguredSecret?, ConfiguredSecret?)

Names where the PostgreSQL connection string and its password come from.

Properties

ConfiguredConnectionString

The connection string from ordinary configuration, typically ConnectionStrings:mailfathom, or null when ConnectionStringSecret supplies it.

ConnectionStringSecret

The block referencing a complete connection string held in a secret store, or null when ordinary configuration supplies it. A connection string is more than a password, so a store-backed deployment usually keeps it whole and rotates one artifact rather than splitting the credential across two systems.

Password

The block referencing the password alone, or null when the connection string already carries every credential or the deployment authenticates without one.