final class PgSqlPartitionParser

Partition parser for PostgreSQL queries.

Methods§

public function parseKey(string $sql): ?TablePartitionKey

Reads a CREATE TABLE partition strategy and its key expressions.

Parameters

$sqlstring
Test cases 5
Called from 3
Calls 11
public function parseRelation(
    string $sql,
    TablePartitionKey $parentKey,
): ?TablePartitionRelation

Resolves a child partition and its predicate using the parent partition key.

Parameters

$sqlstring
$parentKeyTablePartitionKey
Test cases 10
Called from 1
Calls 13

Test cases 29§

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

Dedicated tests 13
Other tests reaching this symbol 16

Relations§

Instantiated in 3
Method calls 5
Type declarations 3