classPrimaryIndex
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.
$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 // => trueMethods§
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
PrimaryIndexTestcalls
Other tests reaching this symbol 1
Relations§
Instantiated in 1
Type checks 2
- instanceof SqlSemantics\Platform\MySql\Rules\Server\CachedIndexes::checked() packages/sql-semantics-mysql/src/Rules/Server/CachedIndexes.php:47
- instanceof SqlSemantics\Platform\MySql\Statement\Relation\Hint\IndexHint::__construct() packages/sql-semantics-mysql/src/Statement/Relation/Hint/IndexHint.php:47