final class Codec
    implements Codec
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Spells decoded names as SQLite identifiers.

Rule: SQLITE-NAME-CODEC-001. A name made of ASCII letters, digits and underscores that does not start with a digit, is no keyword and is not the word TRUE or FALSE (which SQLite reads as a boolean constant when no column has that name) is written bare. Every other name is written in backticks with embedded backticks doubled: unlike a double-quoted word, a backtick-quoted word is always an identifier and never falls back to a string literal. Source: https://sqlite.org/lang_keywords.html, https://sqlite.org/quirks.html#dblquote. Status: Implemented.

Methods§

public function name(Name $name, NameUse $use): string

Spells a decoded name; every position uses the same rule.

Parameters

$nameName
$useNameUse

Returns

string
Test cases 4
Calls 6

Test cases 32§

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 28

Relations§

Instantiated in 2
Type declarations 1