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

Reports the problems of a table definition that follow from the definition alone.

Rule: SQLITE-TABLE-PROBLEMS-001. Diagnostics: a TEMP object qualified with another schema than temp; a repeated column name; an unknown table option; in a STRICT table a column without one of the six standard types; more than one primary key; a WITHOUT ROWID table without a primary key; AUTOINCREMENT on a key that is not an integer primary key, or on a WITHOUT ROWID table; a generated column in the primary key; a table whose columns are all generated. Problems SQLite finds only when rows are written, and limits of the library build, are not modeled. Terminates: the column pairs and the options are finite. Source: https://sqlite.org/lang_createtable.html, https://sqlite.org/stricttables.html, https://sqlite.org/withoutrowid.html, https://sqlite.org/autoinc.html, https://sqlite.org/gencol.html#limitations. Status: Implemented.

Methods§

public function generated(CreateTable $definition, TableKey $key, Derivation $derivation): void

Reports a generated column in the primary key and a table without a plain column.

Parameters

$definitionCreateTable
$keyTableKey
$derivationDerivation
Called from 1
Calls 5
public function duplicates(list<ColumnDefinition> $columns, Derivation $derivation): void

Reports each column whose name an earlier column already has.

Parameters

$columnslist<ColumnDefinition>
$derivationDerivation
Test cases 1
Called from 1
Calls 3

Test cases 2§

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

Dedicated tests 2

Relations§

Instantiated in 3
Method calls 3