classOrderRewriter
final class OrderRewriter
Restricted visibility: declared "@visibility ZtdQuery\Platform\MySql". Code outside that scope must not name this declaration.
Order Rewriter.
Methods§
public function rewriteSetOrderBy(
string $sql,
array<string, array{viewSql: string}|array{columnTypes: array<string, ColumnDeclaration>}> $tables,
): stringRewrite ORDER BY on SET columns to MySQL-compatible bit-order ranking.
Parameters
$sql | string | |
$tables | array<string, array{viewSql: string}|array{columnTypes: array<string, ColumnDeclaration>}> |
Returns
stringTest cases 1
Called from 1
Calls 4
- function-call
striposline 23 - method-call OrderRewriter::columnMaps() line 27
- function-call
preg_replace_callbackline 33 - method-call OrderRewriter::rewriteItems() line 36
public function columnMaps(
string $sql,
array<string, array{viewSql: string}|array{columnTypes: array<string, ColumnDeclaration>}> $tables,
): array{array<string, list<string>>, array<string, list<string>|null>}Parameters
$sql | string | |
$tables | array<string, array{viewSql: string}|array{columnTypes: array<string, ColumnDeclaration>}> |
Returns
array{array<string, list<string>>, array<string, list<string>|null>}Test cases 1
Called from 1
Calls 4
- function-call
striposline 57 - method-call ValueNormalizer::extractSetMembers() line 64
- new ValueNormalizer line 64
- function-call
array_key_existsline 71
public function rewriteItems(
array{string, string, string} $matches,
array<string, list<string>> $qualifiedSetMap,
array<string, list<string>|null> $unqualifiedSetMap,
): stringParameters
$matches | array{string, string, string} | |
$qualifiedSetMap | array<string, list<string>> | |
$unqualifiedSetMap | array<string, list<string>|null> |
Returns
stringTest cases 1
Called from 1
public function rankExpression(list<string> $members, string $columnRef): stringParameters
$members | list<string> | |
$columnRef | string |
Returns
stringTest cases 1
Called from 1
Test cases 15§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 11
MySqlSessionFactoryTestcallsMySqlRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertTransformerTestcallsMySqlTransformerTestcallsReplaceTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsRowMutationResolverTestcallsMySqlMutationResolverTestcalls