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

Applies non-overlapping source edits without invalidating earlier byte offsets.

Methods§

public function apply(
    string $sql,
    list<array{offset: int, length: int, value: string}> $edits,
): string

Parameters

$sqlstring
$editslist<array{offset: int, length: int, value: string}>Edits in ascending source order.

Returns

string
Test cases 1
Called from 1
Calls 2
  • function-call array_reverse line 19
  • function-call substr_replace line 20

Test cases 8§

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

Dedicated tests 1
Other tests reaching this symbol 7

Relations§

Instantiated in 1
Method calls 1