Class TigerQueryCliOptions
- Namespace
- ItTiger.TigerQuery.CliCore
- Assembly
- ItTiger.TigerQuery.CliCore.dll
--tq-connection-store-file.public sealed class TigerQueryCliOptions
- Inheritance
-
TigerQueryCliOptions
- Inherited Members
Remarks
A host creates one instance, hands it to a TigerQueryCliContribution, and passes that same instance to TigerQuery and to its own command factories and services. Two instances, or one instance registered and a different one given to the commands, means the run resolves a store path that nothing reads — so share exactly one.
The host-supplied members are set once at composition time. The run-selected members (ExplicitConnectionStoreFile, ResolvedStorePath, and Store) are filled in by the contribution callback, which TigerCli invokes once per command run before command settings are bound. They are null, and Store throws, until then — including throughout help rendering, which never invokes callbacks.
This type is not thread-safe, and one app instance is not intended to run twice concurrently. Sequential runs of the same app are supported: each run's callback replaces the previous run's resolution and store rather than adding to it.
Properties
DefaultConnectionStoreFile
public required string DefaultConnectionStoreFile { get; init; }
Property Value
Remarks
--tq-connection-store-file nor
ConnectionStoreFile supplies a
value, and it is the one part of the resolution that is known at build time, so
help text may mention it.DefaultE2eBootstrapConnectionName
public string? DefaultE2eBootstrapConnectionName { get; init; }
Property Value
Remarks
connection add-e2e-bootstrap when that command receives no
--name. It confers no authorization; a profile becomes usable for E2E work
through explicit TigerQuery metadata, never through its name.EnvironmentReader
public Func<string, string?>? EnvironmentReader { get; init; }
Property Value
Remarks
ExplicitConnectionStoreFile
--tq-connection-store-file for the current run,
or null when the option was absent or the callback has not run.public string? ExplicitConnectionStoreFile { get; }
Property Value
Remarks
PasswordProtectorFactory
public Func<IConnectionPasswordProtector>? PasswordProtectorFactory { get; init; }
Property Value
Remarks
ResolvedStorePath
public SqlServerConnectionStorePathResolution? ResolvedStorePath { get; }
Property Value
Remarks
Store
public SqlServerConnectionStore Store { get; }
Property Value
Remarks
Exceptions
- InvalidOperationException
- The contribution callback has not run, which means the host did not register the contribution or shared a different options instance with it; or the callback resolved a failure, which normally ends the run before any command can ask.