enumIndexHintScope
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.
$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::OrderByCases§
case Joincase OrderBycase GroupByTest 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
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\TableRule packages/sql-semantics-mysql/src/Lowering/Query/Shared/TableRule.php:57
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\TableRule packages/sql-semantics-mysql/src/Lowering/Query/Shared/TableRule.php:58
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\TableRule packages/sql-semantics-mysql/src/Lowering/Query/Shared/TableRule.php:58
- class-const SqlSemantics\Platform\MySql\Statement\Relation\Hint\IndexHint::render() packages/sql-semantics-mysql/src/Statement/Relation/Hint/IndexHint.php:62
- class-const SqlSemantics\Platform\MySql\Statement\Relation\Hint\IndexHint::render() packages/sql-semantics-mysql/src/Statement/Relation/Hint/IndexHint.php:63
- class-const SqlSemantics\Platform\MySql\Statement\Relation\Hint\IndexHint::render() packages/sql-semantics-mysql/src/Statement/Relation/Hint/IndexHint.php:64