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

Reads the column a term of a PRIMARY KEY or UNIQUE table constraint names.

Rule: SQLITE-KEY-TERM-001. The grammar writes key terms as expressions. SQLite looks through parentheses and COLLATE and takes the term as a key column when what remains is a plain name, written as an identifier, as a double-quoted word or as a string literal (LiteralColumn: a string under any number of COLLATE clauses in a key constraint, under at most one in an index term, is read as an identifier; the structure must write it as a LiteralColumn, so a plain string there is refused at construction). A qualified column reference is still a column for the index of the constraint, but it does not mark the column as part of the primary key; anything else is "expressions prohibited in PRIMARY KEY and UNIQUE

  • constraints". Terminates: each step removes one wrapper of a finite

expression. Source: https://sqlite.org/lang_createtable.html#the_primary_key (and sqlite3AddPrimaryKey(), sqlite3StringToId() and sqlite3CreateIndex() in build.c of the release). Status: Implemented.

Methods§

public function beneath(Scalar $term, ?int $collations): Scalar

Answers the expression of a term without its parentheses and at most the given number of collations; null admits any number.

Parameters

$termScalar
$collations?int

Returns

Test cases 1
Called from 1
public function column(Scalar $term): ?Name

Test cases 6§

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

Dedicated tests 6

Relations§

Instantiated in 7
Method calls 7