enumOffsetSpelling
enum OffsetSpelling
Public API: explicitly declared with
@visibility public.How a LIMIT clause writes its offset: LIMIT offset, count or LIMIT count OFFSET offset.
Both spellings mean the same; the case is kept because the two spellings write the offset and the count in opposite order. Source: https://dev.mysql.com/doc/refman/8.4/en/select.html.
$query = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('SELECT a FROM t LIMIT 5, 10');
$query->statement->limit->spelling // => \SqlSemantics\Platform\MySql\Statement\Query\Clause\OffsetSpelling::CommaCases§
case Commacase KeywordTest 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 4
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\TailRule::options() packages/sql-semantics-mysql/src/Lowering/Query/Shared/TailRule.php:99
- class-const SqlSemantics\Platform\MySql\Lowering\Query\Shared\TailRule::options() packages/sql-semantics-mysql/src/Lowering/Query/Shared/TailRule.php:100
- class-const SqlSemantics\Platform\MySql\Statement\Query\Clause\RowLimit::render() packages/sql-semantics-mysql/src/Statement/Query/Clause/RowLimit.php:56
- class-const SqlSemantics\Platform\MySql\Statement\Query\Clause\RowLimit::render() packages/sql-semantics-mysql/src/Statement/Query/Clause/RowLimit.php:60