final class ColumnGeneration
Public API: explicitly declared with @visibility public.

A typed generation clause, including identity options or its computed expression.

Accepting generated column factsdoctest
$accept = static fn (\SqlSemantics\Core\Schema\ColumnGeneration $value): string => $value->kind->value;
    $accept instanceof \Closure // => true

Properties§

public Element $clause
public ?Element $expression

Methods§

public function __construct(
    public GenerationKind $kind,
    public Element $clause,
    public ?Element $expression,
)

An identity has no computation expression; virtual and stored columns do.

Parameters

$kindGenerationKind
$clauseElement
$expression?Element

Throws

InvalidArgumentException When supplied state violates its invariants
Calls 3

Test cases 7§

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 6

Relations§

Instantiated in 1
Type declarations 2