Table of Contents

Class SqlServerConnectionResolver

Namespace
ItTiger.TigerQuery.Core
Assembly
ItTiger.TigerQuery.Core.dll
Resolves a saved SQL Server connection profile by name to a usable connection string. This keeps profile lookup and profile-to-connection-string behavior with the shared connection model rather than with CLI command handling.
public static class SqlServerConnectionResolver
Inheritance
SqlServerConnectionResolver
Inherited Members

Methods

Resolve(SqlServerConnectionStore, string?, SqlServerExternalValueResolutionOptions?)

Resolves a saved profile name to a normalized SqlClient connection string.
public static SqlServerConnectionResolution Resolve(SqlServerConnectionStore store, string? name, SqlServerExternalValueResolutionOptions? externalValues = null)

Parameters

store SqlServerConnectionStore
The profile store to search.
name string
The case-sensitive saved name, or null when unspecified.
externalValues SqlServerExternalValueResolutionOptions
Optional injected readers used only when the selected profile contains external references.

Returns

SqlServerConnectionResolution
A success containing the connection string, or a failure containing a clean reason for missing input, an absent profile, or connection-string conversion.

Remarks

Profile loading, file I/O, and JSON errors are not converted to failure results. Errors thrown while building a found profile's connection string are. A profile with no database produces a valid server-level connection string.

Exceptions

ArgumentNullException
store is null.