final class UpsertColumn

Reads a column off a row the way SQL names one.

A column named in an expression and the same column as a driver spells it back need not agree on case, so the lookup does not either. A name nothing answers to is refused: quietly reading it as null would make the assignment that depends on it silently wrong.

Type Aliases§

Row = import from TableDefinition
RowValue = import from TableDefinition

Methods§

public function of(Row $row, string $column): RowValue

Answers what a row carries under a column name.

Parameters

$rowRowRow to read
$columnstringColumn as the statement named it

Returns

RowValue The value it carries

Throws

UnsupportedSqlException When the row carries no such column
Test cases 5
Called from 1
Calls 2

Test cases 11§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 5
Other tests reaching this symbol 6

Relations§

Instantiated in 1
Method calls 1
Type declarations 1