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

Encodes chosen text using SQLite 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
public static function backtickIdentifier(string $body): string

Quotes an identifier with backticks and doubles embedded backticks.

Parameters

$bodystring

Returns

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

Encloses an identifier in brackets, removing unrepresentable closing brackets.

Parameters

$bodystring

Returns

string
Test cases 1
Calls 1

Test cases 5§

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 1