enum IndexHintScope
Public API: explicitly declared with @visibility public.

The part of query processing an index hint applies to: FOR JOIN, FOR ORDER BY or FOR GROUP BY.

Without a scope the hint applies to all of them; the absence is kept as written. Source: https://dev.mysql.com/doc/refman/8.4/en/index-hints.html.

Reading the scope of an index hintdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t USE INDEX FOR ORDER BY (i)');
    $query->statement->from->indexHints[0]->scope // => \SqlSemantics\Platform\MySql\Statement\Relation\Hint\IndexHintScope::OrderBy

Cases§

case Join
case OrderBy
case GroupBy

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§

Constant reads 6
Type declarations 1