classRowAssignment
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.
$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> $columnspublic Scalar $valueMethods§
public function __construct(list<Name> $columns, public Scalar $value)Parameters
$columns | list<Name> | The assigned columns in written order; at least one |
$value | Scalar | The row of new values |
Calls 2
- static-call Check::listOf() line 40
- class-const Name::class() line 40
public function render(Output $out): voidWrites the assignment.
Parameters
$out | Output |
Calls 3
- method-call Output::symbol() line 48
- method-call Output::name() line 53
- class-const NameUse::Column() line 53
Test cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.