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