LqlStatementValidator
Validates an `` before dialect conversion. Shared by all platform-specific To*Sql extension methods to avoid duplicating the parse-error and missing-AST guards.
public static class LqlStatementValidator
Methods
Validate(LqlStatement)
public static SqlError? Validate(LqlStatement statement)
Returns the reason the statement cannot be converted, or null when it is valid.
Parameters:
| Name | Type | Description |
|---|---|---|
statement |
LqlStatement |
The statement to validate. |
Returns: SqlError - The parse error when present, a "no AST node" error when the statement has no AST node,
or null when the statement has a usable AST node.