classBoundSelect
final class BoundSelect
Public API: explicitly declared with
@visibility public.A bound SELECT statement: sources, row conditions, ordered outputs, and result modifiers.
$consume = static fn (\SqlSemantics\Core\Model\BoundSelect $value): string => $value::class;
$consume instanceof \Closure // => trueProperties§
public string $scopeIdpublic list<TableUse> $relationspublic list<OutputColumn> $outputspublic Expression|null $wherepublic bool $distinctpublic list<Ordering> $orderBypublic Expression|null $limitpublic Expression|null $offsetpublic Node $sourceMethods§
public function __construct(
public string $scopeId,
public TableUse|Join|null $from,
public list<TableUse> $relations,
public list<OutputColumn> $outputs,
public Expression|null $where,
public bool $distinct,
public list<Ordering> $orderBy,
public Expression|null $limit,
public Expression|null $offset,
public Node $source,
)Parameters
$scopeId | string | Stable scope identity within this bound statement |
$from | TableUse|Join|null | Logical input, absent for a constant SELECT |
$relations | list<TableUse> | Table occurrences in binding order |
$outputs | list<OutputColumn> | Ordered result columns |
$where | Expression|null | Predicate applied after joins; only TRUE retains a row |
$distinct | bool | Whether duplicate output tuples are removed |
$orderBy | list<Ordering> | Ordered sort keys |
$limit | Expression|null | Maximum row count expression |
$offset | Expression|null | Number of rows to skip |
$source | Node | Original SELECT tree |
Test cases 60§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
BoundSelectTestcalls
Other tests reaching this symbol 59
SchemaAnalyzerTestcallsColumnPropertiesTestcallsColumnReaderTestcallsConstraintReaderTestcallsIdentifiersTestcallsSchemaChangesTestcallsSchemaReaderTestcallsStatementListTestcallsTokenGroupsTestcallsTreeTestcallsTypeReaderTestcallsBinderTestcallsBoundRelationTestcallsExpressionBinderTestcallsExpressionRulesTestcallsFromBinderTestcallsIdentitySequenceTestcallsLiteralBinderTestcallsNullFactsTestcallsProjectionBinderTestcallsScopeTestcallsSelectBinderTestcallsSelectModifiersBinderTestcallsSyntaxGuardTestcallsTableResolverTestcallsTypeResolutionTestcallsDialectTestcallsColumnBindingTestcallsExpressionKindTestcallsExpressionTestcallsJoinKindTestcallsJoinTestcallsOrderingTestcallsOutputColumnTestcallsTableUseTestcallsPlatformTestcallsNameRulesTestcallsQueryRulesTestcallsSchemaRulesTestcallsSyntaxRulesTestcallsTypeRulesTestcallsColumnDefinitionTestcallsColumnGenerationTestcallsConstraintKindTestcallsGenerationKindTestcallsInvariantTestcallsTableConstraintTestcallsTableDefinitionTestcallsSchemaBuilderTestcallsSchemaTestcallsSemanticExceptionTestcallsNullabilityTestcallsTypeDescriptorTestcallsSchemaTestcallsNameRulesTestcallsPlatformTestcallsQueryRulesTestcallsSchemaRulesTestcallsTypeRulesTestcalls