final class StatementRewriter
Restricted visibility: declared "@visibility ZtdQuery\Platform\Sqlite". Code outside that scope must not name this declaration.

Builds the read projection and mutation plan for one SQLite statement.

Methods§

public function __construct(
    SqliteCteShadowComposer $cteComposer,
    private SqliteQueryGuard $guard,
    private SqliteMutationResolver $mutationResolver,
    SqliteParser $parser,
    private TableDefinitionRegistry $registry,
    private SqliteReturningProjectionParser $returningProjectionParser,
    private ShadowStore $shadowStore,
    private SqliteTransformer $transformer,
    private ViewDefinitionSet $views,
)

Binds the collaborators used by this operation.

Parameters

Calls 1
public function rewriteStatement(string $stmtSql, string $originalSql): RewritePlan

Builds the read projection and mutation plan for one SQLite statement.

Parameters

$stmtSqlstring
$originalSqlstring
Test cases 3
Called from 2
Calls 17

Private surface 8§

Implementation details, listed for orientation only.

private ReferencedTableLookup $tableLookup
private SqliteQueryGuard $guard
private SqliteMutationResolver $mutationResolver
private TableDefinitionRegistry $registry
private SqliteReturningProjectionParser $returningProjectionParser
private ShadowStore $shadowStore
private SqliteTransformer $transformer
private ViewDefinitionSet $views

Test cases 5§

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

Dedicated tests 3
Other tests reaching this symbol 2

Relations§

Instantiated in 2
Method calls 2