final class PgQuoting
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Encodes chosen text using PostgreSQL quoting rules, independently of generation.

Methods§

public static function identifier(string $body): string

Quotes an identifier and escapes embedded delimiters.

Parameters

$bodystring

Returns

string
Test cases 1
Calls 1
public static function stringLiteral(string $body): string

Quotes a string body and doubles embedded single quotes.

Parameters

$bodystring

Returns

string
Test cases 1
Calls 1

Test cases 3§

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

Dedicated tests 2
Other tests reaching this symbol 1