classTopLevelKeywordScanner
final class TopLevelKeywordScanner
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.
Locates unquoted top-level keywords and completed parenthesized groups.
Methods§
public function scanTopLevelKeywords(string $sql): array<int, array{keyword: string, afterGroup: bool, offset: int}>Parameters
$sql | string |
Returns
array<int, array{keyword: string, afterGroup: bool, offset: int}>Test cases 2
Called from 2
- method-call ZtdQuery\Platform\Sqlite\Sql\Dml\Insert\InsertClauseParser::findInsertSourceClause() packages/ztd-query-sqlite/src/Sql/Dml/Insert/InsertClauseParser.php:112
- method-call ZtdQuery\Platform\Sqlite\Sql\Statement\StatementClassifier::classifyStatement() packages/ztd-query-sqlite/src/Sql/Statement/StatementClassifier.php:22
Calls 6
- function-call
strlenline 20 - method-call OpaqueSqlSpan::length() line 26
- new OpaqueSqlSpan line 26
- function-call
substrline 26 - function-call
strspnline 48 - function-call
strtoupperline 57
Test cases 28§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 26
ReferencedTableLookupTestcallsMatchExpressionRewriterTestcallsSqliteFullTextSearchRewriterTestcallsSqliteQueryGuardTestcallsSqliteRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertProjectionBuilderTestcallsInsertTransformerTestcallsSelectTransformerTestcallsSqliteTransformerTestcallsUpdateTransformerTestcallsColumnDefinitionParserTestcallsTableDefinitionBuilderTestcallsVirtualTableParserTestcallsSqliteSchemaParserTestcallsAddColumnResolverTestcallsInsertMutationResolverTestcallsRowMutationResolverTestcallsTableMutationResolverTestcallsSqliteMutationResolverTestcallsInsertClauseParserTestcallsSqliteParserTestcallsStatementClassifierTestcallsTargetTableParserTestcallsSqliteSessionFactoryTestcalls
Relations§
Instantiated in 2
- new ZtdQuery\Platform\Sqlite\Sql\Dml\Insert\InsertClauseParser::findInsertSourceClause() packages/ztd-query-sqlite/src/Sql/Dml/Insert/InsertClauseParser.php:112
- new ZtdQuery\Platform\Sqlite\Sql\Statement\StatementClassifier::classifyStatement() packages/ztd-query-sqlite/src/Sql/Statement/StatementClassifier.php:22
Method calls 2
- method-call ZtdQuery\Platform\Sqlite\Sql\Dml\Insert\InsertClauseParser::findInsertSourceClause() packages/ztd-query-sqlite/src/Sql/Dml/Insert/InsertClauseParser.php:112
- method-call ZtdQuery\Platform\Sqlite\Sql\Statement\StatementClassifier::classifyStatement() packages/ztd-query-sqlite/src/Sql/Statement/StatementClassifier.php:22