classExpressionEditor
final class ExpressionEditor
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Expression Editor.
Methods§
public function expressionEdit(
string $sql,
SqlTokenStream $stream,
SqlToken $match,
): array{start: int, end: int, replacement: string}|nullParameters
$sql | string | |
$stream | SqlTokenStream | |
$match | SqlToken |
Returns
array{start: int, end: int, replacement: string}|nullTest cases 1
Called from 1
Calls 8
- method-call SqlTokenStream::significantTokenAfter() line 23
- method-call SqlTokenStream::matchingClosingNestingToken() line 27
- function-call
substrline 43 - static-call SqlTokenStream::tokenize() line 44
- static-call MySqlLexerProfile::create() line 44
- method-call ExpressionEditor::queryExpression() line 50
- function-call
array_mapline 55 - function-call
implodeline 59
public function queryExpression(string $queryBody): stringQuery Expression for the supplied MySQL input.
Parameters
$queryBody | string |
Returns
stringTest cases 1
Called from 1
Calls 4
- static-call SqlTokenStream::tokenize() line 76
- static-call MySqlLexerProfile::create() line 76
- function-call
trimline 81 - function-call
substrline 81
Test cases 14§
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 12
MySqlSessionFactoryTestcallsMySqlFullTextSearchRewriterTestcallsMySqlRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertTransformerTestcallsMySqlTransformerTestcallsReplaceTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsRowMutationResolverTestcallsMySqlMutationResolverTestcalls