pgLabII/pgLabII.PgUtils/ConnectionStrings/IConnectionStringService.cs
eelke a5cb6ef7d4 added ServerConfigurationMapping
split up Abstractions so we have one type per file.
2025-08-31 06:49:37 +02:00

18 lines
No EOL
576 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);
}