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

Masks comments and string literals while preserving their byte offsets.

Methods§

public function stripComments(string $sql): string

Strip SQL comments from a string.

Parameters

$sqlstring

Returns

string
Test cases 11
Called from 13
Calls 2
public function maskStringLiterals(string $sql): string

Masks comments and string literals while preserving their byte offsets.

Parameters

$sqlstring

Returns

string
Test cases 2
Called from 1
Calls 5

Test cases 39§

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 26

Relations§

Instantiated in 14
Method calls 14