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

One parenthesized row of a VALUES list.

Source: https://www.postgresql.org/docs/17/sql-values.html.

Reading the values of a rowdoctest
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('VALUES (1, 2)');
    count($query->statement->rows[0]->values) // => 2
Refusing an empty rowdoctest
new \SqlSemantics\Platform\PostgreSql\Statement\Query\Clause\ValuesRow([]) // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\InvalidConstruction

Properties§

public non-empty-list<Scalar> $values

Methods§

public function __construct(list<Scalar> $values)

Parameters

$valueslist<Scalar>The values in column order; at least one
Calls 2
public function render(Output $out): void

Writes the values in parentheses.

Parameters

$outOutput
Calls 1

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 2
Constant reads 2