classJoinedInput
final class JoinedInput
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.
The outcome of deriving a FROM clause term: its facts, the relations it makes visible and the columns * selects.
Each star entry is the index of a visible relation and the position of a slot in its shape, in the order * selects the columns.
Properties§
public RelationFact $factpublic list<VisibleRelation> $visiblepublic list<array{int, int}> $starMethods§
public function __construct(
public RelationFact $fact,
public list<VisibleRelation> $visible,
public list<array{int, int}> $star,
)Parameters
$fact | RelationFact | The facts of the term |
$visible | list<VisibleRelation> | The relations a name can refer to, in written order |
$star | list<array{int, int}> | The columns `*` selects |
public static function of(list<VisibleRelation> $visible, list<array{int, int}> $star): selfAnswers the term with the shape * selects as its facts.
Parameters
$visible | list<VisibleRelation> | The relations a name can refer to |
$star | list<array{int, int}> | The columns `*` selects |
Returns
selfTest cases 4
Called from 2
public function slot(array{int, int} $entry): OutputSlotpublic function complete(): boolTells whether the names of every visible relation are decided: its shape is complete and no column name depends on missing inputs.
Returns
boolCalled from 2
Calls 1
- static-call LookupLevel::undecided() line 68
Test cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Relations§
Instantiated in 5
- new SqlSemantics\Platform\MySql\Rules\Query\From\FromScope::open() packages/sql-semantics-mysql/src/Rules/Query/From/FromScope.php:66
- new SqlSemantics\Platform\MySql\Rules\Query\From\FromScope::open() packages/sql-semantics-mysql/src/Rules/Query/From/FromScope.php:73
- new SqlSemantics\Platform\MySql\Rules\Query\SelectFacts::derive() packages/sql-semantics-mysql/src/Rules/Query/SelectFacts.php:61
- new SqlSemantics\Platform\MySql\Rules\Query\SelectFacts::derive() packages/sql-semantics-mysql/src/Rules/Query/SelectFacts.php:67
- new SqlSemantics\Platform\MySql\Statement\Dml\Evaluation::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Evaluation.php:65
Static calls 2
Method calls 2
Type declarations 7
- type SqlSemantics\Platform\MySql\Rules\Query\From\FromScope packages/sql-semantics-mysql/src/Rules/Query/From/FromScope.php:51
- type SqlSemantics\Platform\MySql\Rules\Query\From\FromScope packages/sql-semantics-mysql/src/Rules/Query/From/FromScope.php:81
- type SqlSemantics\Platform\MySql\Rules\Query\From\Joining packages/sql-semantics-mysql/src/Rules/Query/From/Joining.php:47
- type SqlSemantics\Platform\MySql\Rules\Query\From\Joining packages/sql-semantics-mysql/src/Rules/Query/From/Joining.php:87
- type SqlSemantics\Platform\MySql\Rules\Query\From\Joining packages/sql-semantics-mysql/src/Rules/Query/From/Joining.php:121
- type SqlSemantics\Platform\MySql\Rules\Query\Projection packages/sql-semantics-mysql/src/Rules/Query/Projection.php:52
- type SqlSemantics\Platform\MySql\Rules\Query\Projection packages/sql-semantics-mysql/src/Rules/Query/Projection.php:78