classValueRow
final class ValueRow
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.One row constructor of a VALUES statement: ROW(value, ...).
The VALUES statement that holds the row derives its values. Source: https://dev.mysql.com/doc/refman/8.4/en/values.html.
$row = new \SqlSemantics\Platform\MySql\Statement\Query\ValueRow([new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('1'), new \SqlSemantics\Platform\MySql\Statement\Literal\NumberLiteral('2')]);
count($row->values) // => 2Properties§
public list<Scalar> $valuesMethods§
public function __construct(list<Scalar> $values)Parameters
$values | list<Scalar> | The values in written order |
Calls 2
- static-call Check::listOf() line 38
- class-const Scalar::class() line 38
public function render(Output $out): voidWrites the row constructor.
Parameters
$out | Output |
Test cases 1
Calls 1
- method-call Output::keyword() line 46
Test cases 6§
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 5
ResultSlotsTest::testValuesNamesTheColumnsByPositioncallsValuesQueryTest::testDeriveQueryNamesTheColumnsAndCombinesTheRowscallsValuesQueryTest::testDeriveQueryReportsRowsOfDifferentLengthscallsValuesQueryTest::testDeriveStatementRecordsTheRowsAsTheOutputcallsValuesQueryTest::testRenderWritesTheRowscalls