added ServerConfigurationMapping

split up Abstractions so we have one type per file.
This commit is contained in:
eelke 2025-08-31 06:49:37 +02:00
parent b7631ecdd0
commit a5cb6ef7d4
13 changed files with 431 additions and 76 deletions

View file

@ -0,0 +1,19 @@
using FluentResults;
namespace pgLabII.PgUtils.ConnectionStrings;
/// <summary>
/// Codec for a specific connection string format (parse and format only for its own format).
/// Do not implement format specifics yet; provide interface only.
/// </summary>
public interface IConnectionStringCodec
{
ConnStringFormat Format { get; }
string FormatName { get; }
// Parse input in this codec's format into a descriptor.
Result<ConnectionDescriptor> TryParse(string input);
// Format a descriptor into this codec's format.
Result<string> TryFormat(ConnectionDescriptor descriptor);
}