classRelationFact
final class RelationFact
uses Snapshot
Public API: explicitly declared with
@visibility public.What an operation derived for one relation occurrence or one table use.
$semantics = new \SqlSemantics\Platform\MySql\Semantics();
$table = $semantics->analyze('CREATE TABLE t (a INTEGER, b TEXT)');
$query = $semantics->analyze('SELECT a FROM t', [$table]);
count($query->facts->relation($query->inputRelation())->shape->slots) // => 2Properties§
public RowShape $shapepublic TableResolution|null $table = nullMethods§
public function __construct(public RowShape $shape, public TableResolution|null $table = null)Parameters
$shape | RowShape | The ordered output positions the occurrence contributes |
$table | TableResolution|null | The resolution of the relation name, when the occurrence names one |
Relations§
Instantiated in 36
- new SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::target() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:181
- new SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::target() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:184
- new SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::target() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:187
- new SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks::target() packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:190
- new SqlSemantics\Platform\MySql\Rules\Query\From\JoinedInput::of() packages/sql-semantics-mysql/src/Rules/Query/From/JoinedInput.php:49
- new SqlSemantics\Platform\MySql\Rules\Query\Having\GroupedRow::deriveRelation() packages/sql-semantics-mysql/src/Rules/Query/Having/GroupedRow.php:46
- new SqlSemantics\Platform\MySql\Rules\Query\SelectFacts::derive() packages/sql-semantics-mysql/src/Rules/Query/SelectFacts.php:61
- new SqlSemantics\Platform\MySql\Rules\Query\TableShapes::named() packages/sql-semantics-mysql/src/Rules/Query/TableShapes.php:61
- new SqlSemantics\Platform\MySql\Rules\Query\TableShapes::named() packages/sql-semantics-mysql/src/Rules/Query/TableShapes.php:66
- new SqlSemantics\Platform\MySql\Rules\Query\TableShapes::named() packages/sql-semantics-mysql/src/Rules/Query/TableShapes.php:69
- new SqlSemantics\Platform\MySql\Rules\Query\TableShapes::named() packages/sql-semantics-mysql/src/Rules/Query/TableShapes.php:72
- new SqlSemantics\Platform\MySql\Rules\TableChange\Renamings::derive() packages/sql-semantics-mysql/src/Rules/TableChange/Renamings.php:59
- new SqlSemantics\Platform\MySql\Rules\TableChange\Targets::target() packages/sql-semantics-mysql/src/Rules/TableChange/Targets.php:57
- new SqlSemantics\Platform\MySql\Rules\TableChange\Targets::target() packages/sql-semantics-mysql/src/Rules/TableChange/Targets.php:60
- new SqlSemantics\Platform\MySql\Rules\TableChange\Targets::target() packages/sql-semantics-mysql/src/Rules/TableChange/Targets.php:63
- new SqlSemantics\Platform\MySql\Rules\TableChange\Targets::optional() packages/sql-semantics-mysql/src/Rules/TableChange/Targets.php:73
- new SqlSemantics\Platform\MySql\Rules\TableDefinition\TableTargets::existing() packages/sql-semantics-mysql/src/Rules/TableDefinition/TableTargets.php:83
- new SqlSemantics\Platform\MySql\Rules\TableDefinition\TableTargets::existing() packages/sql-semantics-mysql/src/Rules/TableDefinition/TableTargets.php:86
- new SqlSemantics\Platform\MySql\Rules\TableDefinition\TableTargets::existing() packages/sql-semantics-mysql/src/Rules/TableDefinition/TableTargets.php:89
- new SqlSemantics\Platform\MySql\Rules\TableDefinition\TableTargets::parent() packages/sql-semantics-mysql/src/Rules/TableDefinition/TableTargets.php:103
- new SqlSemantics\Platform\MySql\Rules\Utility\ShowFacts::fact() packages/sql-semantics-mysql/src/Rules/Utility/ShowFacts.php:74
- new SqlSemantics\Platform\MySql\Rules\Utility\ShowFacts::open() packages/sql-semantics-mysql/src/Rules/Utility/ShowFacts.php:96
- new SqlSemantics\Platform\MySql\Rules\Utility\ShowTargets::derive() packages/sql-semantics-mysql/src/Rules/Utility/ShowTargets.php:53
- new SqlSemantics\Platform\MySql\Rules\Utility\ShowTargets::derive() packages/sql-semantics-mysql/src/Rules/Utility/ShowTargets.php:57
- new SqlSemantics\Platform\MySql\Statement\Alter\AlterTable::deriveStatement() packages/sql-semantics-mysql/src/Statement/Alter/AlterTable.php:90
- new SqlSemantics\Platform\MySql\Statement\Alter\AlterTable::deriveRelation() packages/sql-semantics-mysql/src/Statement/Alter/AlterTable.php:104
- new SqlSemantics\Platform\MySql\Statement\Dml\Evaluation::deriveStatement() packages/sql-semantics-mysql/src/Statement/Dml/Evaluation.php:65
- new SqlSemantics\Platform\MySql\Statement\Dml\Handler\OpenHandler::deriveRelation() packages/sql-semantics-mysql/src/Statement/Dml/Handler/OpenHandler.php:48
- new SqlSemantics\Platform\MySql\Statement\Dml\Insert\RowAlias::deriveRelation() packages/sql-semantics-mysql/src/Statement/Dml/Insert/RowAlias.php:77
- new SqlSemantics\Platform\MySql\Statement\Dml\Insert\RowAlias::deriveRelation() packages/sql-semantics-mysql/src/Statement/Dml/Insert/RowAlias.php:95
- new SqlSemantics\Platform\MySql\Statement\Relation\DerivedTable::deriveRelation() packages/sql-semantics-mysql/src/Statement/Relation/DerivedTable.php:71
- new SqlSemantics\Platform\MySql\Statement\Relation\Dual::deriveRelation() packages/sql-semantics-mysql/src/Statement/Relation/Dual.php:36
- new SqlSemantics\Platform\MySql\Statement\Relation\JsonTable::deriveRelation() packages/sql-semantics-mysql/src/Statement/Relation/JsonTable.php:77
- new SqlSemantics\Platform\MySql\Statement\Routine\ParameterList::deriveRelation() packages/sql-semantics-mysql/src/Statement/Routine/ParameterList.php:63
- new SqlSemantics\Platform\MySql\Statement\Routine\Program\VariableDeclaration::deriveRelation() packages/sql-semantics-mysql/src/Statement/Routine/Program/VariableDeclaration.php:76
- new SqlSemantics\Platform\MySql\Statement\Table\CreateTable::deriveRelation() packages/sql-semantics-mysql/src/Statement/Table/CreateTable.php:139
Type declarations 53
- type SqlSemantics\Platform\MySql\Model\Construction\Derivation packages/sql-semantics-mysql/src/Model/Construction/Derivation.php:182
- type SqlSemantics\Platform\MySql\Model\Construction\Derivation packages/sql-semantics-mysql/src/Model/Construction/Derivation.php:190
- type SqlSemantics\Platform\MySql\Model\Statement\Fact\Facts packages/sql-semantics-mysql/src/Model/Statement/Fact/Facts.php:105
- type SqlSemantics\Platform\MySql\Model\Statement\Relation packages/sql-semantics-mysql/src/Model/Statement/Relation.php:26
- type SqlSemantics\Platform\MySql\Rules\Account\PrivilegeChecks packages/sql-semantics-mysql/src/Rules/Account/PrivilegeChecks.php:172
- type SqlSemantics\Platform\MySql\Rules\Query\From\JoinedInput packages/sql-semantics-mysql/src/Rules/Query/From/JoinedInput.php:28
- type SqlSemantics\Platform\MySql\Rules\Query\Having\GroupedRow packages/sql-semantics-mysql/src/Rules/Query/Having/GroupedRow.php:44
- type SqlSemantics\Platform\MySql\Rules\Query\TableShapes packages/sql-semantics-mysql/src/Rules/Query/TableShapes.php:52
- type SqlSemantics\Platform\MySql\Rules\Query\TableShapes packages/sql-semantics-mysql/src/Rules/Query/TableShapes.php:80
- type SqlSemantics\Platform\MySql\Rules\Query\TableShapes packages/sql-semantics-mysql/src/Rules/Query/TableShapes.php:93
- type SqlSemantics\Platform\MySql\Rules\Routine\RowAliases packages/sql-semantics-mysql/src/Rules/Routine/RowAliases.php:37
- type SqlSemantics\Platform\MySql\Rules\TableChange\ColumnChanges packages/sql-semantics-mysql/src/Rules/TableChange/ColumnChanges.php:89
- type SqlSemantics\Platform\MySql\Rules\TableChange\Targets packages/sql-semantics-mysql/src/Rules/TableChange/Targets.php:48
- type SqlSemantics\Platform\MySql\Rules\TableChange\Targets packages/sql-semantics-mysql/src/Rules/TableChange/Targets.php:69
- type SqlSemantics\Platform\MySql\Rules\TableDefinition\TableTargets packages/sql-semantics-mysql/src/Rules/TableDefinition/TableTargets.php:79
- type SqlSemantics\Platform\MySql\Rules\TableDefinition\TableTargets packages/sql-semantics-mysql/src/Rules/TableDefinition/TableTargets.php:98
- type SqlSemantics\Platform\MySql\Rules\Utility\ShowFacts packages/sql-semantics-mysql/src/Rules/Utility/ShowFacts.php:72
- type SqlSemantics\Platform\MySql\Rules\Utility\ShowFacts packages/sql-semantics-mysql/src/Rules/Utility/ShowFacts.php:94
- type SqlSemantics\Platform\MySql\Rules\Utility\ShowTargets packages/sql-semantics-mysql/src/Rules/Utility/ShowTargets.php:43
- type SqlSemantics\Platform\MySql\Statement\Alter\AlterTable packages/sql-semantics-mysql/src/Statement/Alter/AlterTable.php:100
- type SqlSemantics\Platform\MySql\Statement\Dml\Handler\OpenHandler packages/sql-semantics-mysql/src/Statement/Dml/Handler/OpenHandler.php:46
- type SqlSemantics\Platform\MySql\Statement\Dml\Insert\RowAlias packages/sql-semantics-mysql/src/Statement/Dml/Insert/RowAlias.php:65
- type SqlSemantics\Platform\MySql\Statement\Dml\WriteTarget packages/sql-semantics-mysql/src/Statement/Dml/WriteTarget.php:80
- type SqlSemantics\Platform\MySql\Statement\Query\ExplicitTable packages/sql-semantics-mysql/src/Statement/Query/ExplicitTable.php:84
- type SqlSemantics\Platform\MySql\Statement\Relation\DerivedTable packages/sql-semantics-mysql/src/Statement/Relation/DerivedTable.php:65
- type SqlSemantics\Platform\MySql\Statement\Relation\Dual packages/sql-semantics-mysql/src/Statement/Relation/Dual.php:34
- type SqlSemantics\Platform\MySql\Statement\Relation\EscapedRelation packages/sql-semantics-mysql/src/Statement/Relation/EscapedRelation.php:44
- type SqlSemantics\Platform\MySql\Statement\Relation\JoinedTable packages/sql-semantics-mysql/src/Statement/Relation/JoinedTable.php:71
- type SqlSemantics\Platform\MySql\Statement\Relation\JsonTable packages/sql-semantics-mysql/src/Statement/Relation/JsonTable.php:65
- type SqlSemantics\Platform\MySql\Statement\Relation\NestedRelation packages/sql-semantics-mysql/src/Statement/Relation/NestedRelation.php:42
- type SqlSemantics\Platform\MySql\Statement\Relation\OdbcJoin packages/sql-semantics-mysql/src/Statement/Relation/OdbcJoin.php:42
- type SqlSemantics\Platform\MySql\Statement\Relation\TableList packages/sql-semantics-mysql/src/Statement/Relation/TableList.php:57
- type SqlSemantics\Platform\MySql\Statement\Relation\TableReference packages/sql-semantics-mysql/src/Statement/Relation/TableReference.php:94
- type SqlSemantics\Platform\MySql\Statement\Routine\ParameterList packages/sql-semantics-mysql/src/Statement/Routine/ParameterList.php:56
- type SqlSemantics\Platform\MySql\Statement\Routine\Program\VariableDeclaration packages/sql-semantics-mysql/src/Statement/Routine/Program/VariableDeclaration.php:66
- type SqlSemantics\Platform\MySql\Statement\Routine\Trigger\TriggerTable packages/sql-semantics-mysql/src/Statement/Routine/Trigger/TriggerTable.php:48
- type SqlSemantics\Platform\MySql\Statement\Table\CreateIndex packages/sql-semantics-mysql/src/Statement/Table/CreateIndex.php:119
- type SqlSemantics\Platform\MySql\Statement\Table\CreateTable packages/sql-semantics-mysql/src/Statement/Table/CreateTable.php:128
- type SqlSemantics\Platform\MySql\Statement\Table\Key\References packages/sql-semantics-mysql/src/Statement/Table/Key/References.php:71
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Program\ShowFunctionStatus packages/sql-semantics-mysql/src/Statement/Utility/Show/Program/ShowFunctionStatus.php:55
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Program\ShowProcedureStatus packages/sql-semantics-mysql/src/Statement/Utility/Show/Program/ShowProcedureStatus.php:55
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowColumns packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowColumns.php:67
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowDatabases packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowDatabases.php:56
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowEvents packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowEvents.php:59
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowKeys packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowKeys.php:66
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowOpenTables packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowOpenTables.php:59
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowTableStatus packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowTableStatus.php:59
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowTables packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowTables.php:64
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Schema\ShowTriggers packages/sql-semantics-mysql/src/Statement/Utility/Show/Schema/ShowTriggers.php:59
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowCharacterSet packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowCharacterSet.php:56
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowCollation packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowCollation.php:55
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowStatus packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowStatus.php:58
- type SqlSemantics\Platform\MySql\Statement\Utility\Show\Server\ShowVariables packages/sql-semantics-mysql/src/Statement/Utility/Show/Server/ShowVariables.php:58