pgLabII/pgLabII.PgUtils/ConnectionStrings/IConnectionStringService.cs
eelke 4b8a346cfb Server configuration list in DataGrid.
Sorting already works out of the box.
2025-10-26 17:13:31 +01:00

18 lines
578 B
C#

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);
}