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

One parenthesized row of INSERT ... VALUES: values or DEFAULT, one per written column.

An empty row with no column list writes the default of every column. The statement that holds the row derives its values. Source: https://dev.mysql.com/doc/refman/8.4/en/insert.html.

Reading the values of a rowdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('INSERT INTO t VALUES (1, 2), ()') // throws \SqlSemantics\Platform\MySql\Model\Diagnostic\SemanticException: Column count doesn't match value count at row 2

Properties§

public list<Scalar> $values

Methods§

public function __construct(list<Scalar> $values)

Parameters

$valueslist<Scalar>The values in written order
Calls 2
public function render(Output $out): void

Writes the parenthesized values.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 2§

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 1

Relations§

Instantiated in 1
Constant reads 1