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

An assignment of a row value to a parenthesised list of columns of the written table.

Source: https://sqlite.org/rowvalue.html#update_table_set_c1_c2_value_value.

Reading a row assignmentdoctest
$update = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('UPDATE t SET (a, b) = (1, 2)');
    [count($update->statement->assignments[0]->columns), count($update->statement->assignments[0]->value->items)] // => [2, 2]

Properties§

public non-empty-list<Name> $columns
public Scalar $value

Methods§

public function __construct(list<Name> $columns, public Scalar $value)

Parameters

$columnslist<Name>The assigned columns in written order; at least one
$valueScalarThe row of new values
Calls 2
public function render(Output $out): void

Writes the assignment.

Parameters

$outOutput
Calls 3

Test cases 5§

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 3

Relations§

Instantiated in 1
Constant reads 2
Type checks 1