final class ShowRows
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

The columns of the rows SHOW and EXPLAIN return.

Rule: MYSQL-SHOW-ROWS-001. The manual fixes the names and the order of the columns of each SHOW and EXPLAIN form; the server fixes their types and whether they can be NULL in the result metadata it sends, which differs between releases. The tables (Columns/*Reports) hold, for each layout and release, the names and those facts as the servers of the shipped releases report them. A type is stated by its kind: the server computes the length of several columns from the session (the character set of the connection, the longest value), so lengths are not part of the facts. Codes: v VARCHAR, c CHAR, t TEXT, m MEDIUMTEXT, l LONGTEXT, b BIGINT, B BIGINT UNSIGNED, i INT, I INT UNSIGNED, d DECIMAL, f DOUBLE, F DOUBLE UNSIGNED, D DATETIME, T TIMESTAMP, n NULL only (a column that is always NULL). Precision: every column is a known type, or NULL only. Terminates: a fixed table. Source: https://dev.mysql.com/doc/refman/8.4/en/show.html and the pages of each SHOW statement, https://dev.mysql.com/doc/refman/8.4/en/explain-output.html, and the result metadata of the shipped server releases. Status: Implemented.

Methods§

public function columns(Report $report, GrammarRelease $release): list<array{string, string}>

Answers the names and codes of the columns of a layout in a release.

Parameters

$reportReport
$releaseGrammarRelease

Returns

list<array{string, string}>
Test cases 2
Called from 1
Calls 9
public function slots(list<array{string, string}> $columns): list<OutputSlot>

Answers the output slots of columns given by names and codes.

Parameters

$columnslist<array{string, string}>

Returns

Test cases 1
Called from 2
Calls 7

Private surface 2§

Implementation details, listed for orientation only.

private const CHARACTERS = ['v' => \SqlSemantics\Platform\MySql\Statement\Type\Kind\CharacterKind::VarChar…
private const INTEGERS = ['b' => [\SqlSemantics\Platform\MySql\Statement\Type\Kind\IntegralKind::BigInt,…

Test cases 4§

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

Dedicated tests 4

Relations§

Instantiated in 2
Method calls 3