SubqueryLayout
Renders nested pipelines — common table expressions, derived-table joins, and EXISTS/IN subquery bodies — in one clause-per-line layout shared by every dialect. Only paging syntax differs per dialect. Implements [LQL-CTE], [LQL-DERIVED-TABLE] and [LQL-SUBQUERY-LAYOUT].
public static class SubqueryLayout
Methods
Applies(INode?)
public static bool Applies(INode? node)
True when the statement needs this layout: it declares CTEs or joins a derived table.
Parameters:
| Name | Type | Description |
|---|---|---|
node |
INode |
The statement's AST node. |
Returns: Boolean - Whether `` should render the statement.
Render(INode, Func<string?, string?, SqlPaging>)
public static string Render(INode node, Func<string?, string?, SqlPaging> paging)
Renders a statement that `` to.
Parameters:
| Name | Type | Description |
|---|---|---|
node |
INode |
The statement's AST node. |
paging |
SqlPaging> |
The dialect's LIMIT/OFFSET rendering. |
Returns: String - The SQL text.