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

A part of a statement that is not itself an expression, relation or query but may hold some.

Type names, option lists, sort items, window specifications and object signatures are clauses. Whoever holds a clause derives it exactly once, in the environment its expressions are evaluated in, so every expression inside it receives its facts.

Telling that a type name is a clausedoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze("SELECT numeric(4, 2) '1.5'");
    $query->statement->targets[0]->expression->type instanceof \SqlSemantics\Platform\PostgreSql\Statement\Clause // => true

Methods§

public function deriveClause(Derivation $derivation, Environment $environment): void

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Implemented by 47
Extended by 13
Method calls 1
Constant reads 6
Type checks 2
Type declarations 14