final class PgSqlMutationResolver

Resolves the appropriate ShadowMutation for a given PostgreSQL SQL statement.

Methods§

public function __construct(
    ShadowStore $shadowStore,
    TableDefinitionRegistry $registry,
    SchemaParser $schemaParser,
    PgSqlParser $parser,
)

Initializes the collaborators and state used by this mutation resolver.

Parameters

$shadowStoreShadowStore
$registryTableDefinitionRegistry
$schemaParserSchemaParser
$parserPgSqlParser
Calls 1
public function resolve(string $sql, string $statementType, QueryKind $kind): ?ShadowMutation

Resolve mutation for a given SQL statement.

Parameters

$sqlstring
$statementTypestring
$kindQueryKind
Test cases 147
Called from 2
Calls 10

Private surface 5§

Implementation details, listed for orientation only.

private ShadowStore $shadowStore
private TableDefinitionRegistry $registry
private SchemaParser $schemaParser
private PgSqlParser $parser
private PgSqlPartitionParser $partitionParser

Test cases 284§

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

Dedicated tests 147
Other tests reaching this symbol 137

Relations§

Instantiated in 1
Method calls 2
Type declarations 4