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

The primary key index named by the PRIMARY keyword in an index list.

Source: https://dev.mysql.com/doc/refman/8.4/en/index-hints.html.

Reading the primary key in an index hintdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t USE INDEX (PRIMARY, i)');
    $query->statement->from->indexHints[0]->indexes[0] instanceof \SqlSemantics\Platform\MySql\Statement\Relation\Hint\PrimaryIndex // => true

Methods§

public function render(Output $out): void

Writes the keyword.

Parameters

$outOutput
Calls 1

Test cases 2§

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 1

Relations§

Instantiated in 1
Type checks 2