final class MySqlPartitionSelectionRewriter

Rewrites explicit MySQL partition selection into filtered table sources.

Methods§

public function rewrite(
    string $sql,
    array<string, array{viewSql: string}|array{rows: array<int, array<string, mixed>>, columns: array<int, string>, columnTypes: array<string, ColumnDeclaration>, partitioning?: TablePartitioning|null}> $tables,
): string

Parameters

$sqlstring
$tablesarray<string, array{viewSql: string}|array{rows: array<int, array<string, mixed>>, columns: array<int, string>, columnTypes: array<string, ColumnDeclaration>, partitioning?: TablePartitioning|null}>

Returns

string
Test cases 15
Called from 1
Calls 16

Test cases 26§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 15
Other tests reaching this symbol 11

Relations§

Instantiated in 1
Method calls 1
Type declarations 1