final class Assignment
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

An assignment of one value to one column of the written table.

Reading an assignmentdoctest
$update = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('UPDATE t SET a = 1');
    [$update->statement->assignments[0]->column->value, $update->statement->assignments[0]->value->digits] // => ['a', '1']

Properties§

public Name $column
public Scalar $value

Methods§

public function __construct(public Name $column, public Scalar $value)

Parameters

$columnNameThe assigned column
$valueScalarThe new value
public function render(Output $out): void

Writes the assignment.

Parameters

$outOutput
Calls 2

Test cases 13§

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

Dedicated tests 2
Other tests reaching this symbol 11

Relations§

Instantiated in 1
Constant reads 2
Type checks 2