Class OutputRoutingOptions
- Namespace
- ItTiger.TigerQuery.Engine
- Assembly
- ItTiger.TigerQuery.dll
public sealed class OutputRoutingOptions
- Inheritance
-
OutputRoutingOptions
- Inherited Members
Remarks
All routing is opt-in. With no initial path and no :Out or :Error
directive, result sets and messages continue to reach
OnResultSet and
OnMessage and no file is created.
When a channel is routed to a file its presentation callback is not invoked. This is redirection, not mirroring. Structured logging through Logger is independent of routing and continues for every message.
Files are created lazily, on the first payload written to a physical destination, using create/truncate semantics on first use in a run. The parent directory must already exist; TigerQuery never creates directories. Output is never appended across runs.
Properties
AllowScriptOutputDirectives
:Out and
:Error.public bool AllowScriptOutputDirectives { get; init; }
Property Value
Remarks
BaseDirectory
public string? BaseDirectory { get; init; }
Property Value
Remarks
FileEncoding
public Encoding? FileEncoding { get; init; }
Property Value
Remarks
null selects TigerQuery's default of UTF-8 with a byte-order mark, which is the supported interoperability baseline.
A supplied encoding is validated at run start and used with exception fallbacks, so an unencodable character fails the run instead of being silently replaced. Its byte-order-mark preference is preserved. CSV-library and spreadsheet interoperability then depends on that encoding and on consumer support for it.
InitialErrorPath
public string? InitialErrorPath { get; init; }
Property Value
Remarks
:Error directive replaces this route from its position onward.InitialOutPath
public string? InitialOutPath { get; init; }
Property Value
Remarks
:Out
directive does, so it can also redirect normal messages to the companion
file. A relative path is resolved against BaseDirectory.
A script :Out directive replaces this route from its position onward.OutBehavior
:Out directive redirects.public OutDirectiveBehavior OutBehavior { get; init; }
Property Value
ResultSetFileMode
public ResultSetFileMode ResultSetFileMode { get; init; }
Property Value
ResultSetFormat
public ResultSetOutputFormat ResultSetFormat { get; init; }