final class SqliteMutationResolver

Resolves the appropriate ShadowMutation for a given SQLite SQL statement.

Methods§

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

Binds the dependencies used by this operation.

Parameters

$shadowStoreShadowStore
$registryTableDefinitionRegistry
$schemaParserSchemaParser
$parserSqliteParser
public function resolve(string $sql, QueryKind $kind): ?ShadowMutation

Resolve mutation for a given SQL statement.

Parameters

$sqlstring
$kindQueryKind
Test cases 191
Called from 2
Calls 10

Private surface 4§

Implementation details, listed for orientation only.

private ShadowStore $shadowStore
private TableDefinitionRegistry $registry
private SchemaParser $schemaParser
private SqliteParser $parser

Test cases 278§

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

Dedicated tests 191
Other tests reaching this symbol 87

Relations§

Instantiated in 1
Method calls 2
Type declarations 3