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 whenConnectionStringSecretsupplies 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.