interface Relation
    extends Node
Public API: explicitly declared with @visibility public.

One occurrence of an input relation: a named table, a join, a derived query, and so on.

Two occurrences of the same declared table are two relations.

Reading the input relation of a querydoctest
$operation = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t');
    $operation->inputRelation() instanceof \SqlSemantics\Platform\MySql\Model\Statement\Relation // => true

Methods§

public function deriveRelation(Derivation $derivation, Environment $environment): RelationFact

Derives the ordered row shape this occurrence contributes.

Parameters

$derivationDerivation
$environmentEnvironment
Called from 1

Relations§

Implemented by 31
Extended by 1
Method calls 3
Constant reads 4
Type checks 1
Type declarations 29