classValuesRow
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.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('VALUES (1, 2)');
count($query->statement->rows[0]->values) // => 2new \SqlSemantics\Platform\PostgreSql\Statement\Query\Clause\ValuesRow([]) // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\InvalidConstructionProperties§
public non-empty-list<Scalar> $valuesMethods§
public function __construct(list<Scalar> $values)Parameters
$values | list<Scalar> | The values in column order; at least one |
Calls 2
- static-call Check::listOf() line 39
- class-const Scalar::class() line 39
public function render(Output $out): voidTest cases 7§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ValuesRowTestcalls
Other tests reaching this symbol 6
SelectRuleTest::testValuesKeepsTheRowsInOrdercallsCarriersTest::testCarryAddsAnOccurrenceNoNameReachescallsCarriersTest::testCoreUnwrapsParenthesesAndClausescallsCarriersTest::testTakeAnswersTheCarriersOfAQuerycallsCarrierTest::testDeriveRelationAnswersARowWithoutColumnscallsCarrierTest::testRenderWritesNothingcalls
Relations§
Instantiated in 2
Constant reads 2
- class-const SqlSemantics\Platform\PostgreSql\Statement\Manipulation\ValueRows::__construct() packages/sql-semantics-postgres/src/Statement/Manipulation/ValueRows.php:45
- class-const SqlSemantics\Platform\PostgreSql\Statement\Query\ValuesList::__construct() packages/sql-semantics-postgres/src/Statement/Query/ValuesList.php:47