enum IndexHintAction: string
Public API: explicitly declared with @visibility public.

What an index hint asks the optimizer: USE, FORCE or IGNORE the listed indexes.

Each case holds its keyword. The KEY and INDEX keywords after it are synonyms; the writer emits INDEX. Source: https://dev.mysql.com/doc/refman/8.4/en/index-hints.html.

Reading the action of an index hintdoctest
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t FORCE INDEX (i)');
    $query->statement->from->indexHints[0]->action // => \SqlSemantics\Platform\MySql\Statement\Relation\Hint\IndexHintAction::Force

Cases§

case Use = 'USE'
case Force = 'FORCE'
case Ignore = 'IGNORE'

Test cases 3§

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 2

Relations§

Constant reads 4
Type declarations 1