final class PostgreSqlLexicalMasker

Masks PostgreSQL comments and string literals without exposing their contents to parsers.

Methods§

public static function maskComments(string $sql): string

Replaces each comment with one separator while retaining quoted SQL.

Parameters

$sqlstring

Returns

string
Test cases 3
Called from 20
Calls 8

Test cases 29§

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

Dedicated tests 4
Other tests reaching this symbol 25

Relations§

Static calls 22