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,18 @@
using FluentResults;
namespace pgLabII.PgUtils.ConnectionStrings;
/// <summary>
/// High-level service to detect, parse, format and convert between formats.
/// Implementations will compose specific codecs.
/// </summary>
public interface IConnectionStringService
{
Result<ConnStringFormat> DetectFormat(string input);
Result<ConnectionDescriptor> ParseToDescriptor(string input);
Result<string> FormatFromDescriptor(ConnectionDescriptor descriptor, ConnStringFormat targetFormat);
Result<string> Convert(string input, ConnStringFormat targetFormat);
}