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

Derives the declaration a table definition with a column list provides.

Rule: SQLITE-TABLE-DECLARATION-001. The declaration has one column per column definition, in order, with the declared type SQLite records (SQLITE-TYPE-RECORDING-001). A TEMP table belongs to the temp schema.

NULL facts: a column is never NULL when it has a NOT NULL constraint, when it is the integer primary key (reading it yields the rowid), or when it is a primary key column of a WITHOUT ROWID or STRICT table. "Unless the column

  • is an INTEGER PRIMARY KEY or the table is a WITHOUT ROWID table or a STRICT
  • table or the column is declared NOT NULL, SQLite allows NULL values in a
  • PRIMARY KEY column": every other column, generated columns included, can be

NULL.

Row identifier: a table that is not WITHOUT ROWID has a rowid, found by the names rowid, oid and _rowid_ unless a declared column has that name, and not part of *. When the table has an integer primary key (SQLITE-PRIMARY-KEY-001), those names denote that declared column; otherwise they denote an undeclared INTEGER column that is never NULL. A WITHOUT ROWID table has no such column.

Generated columns are ordinary columns for reading, VIRTUAL and STORED alike, and are declared generated: they cannot be written (SQLITE-GENERATED-WRITE-001). An ordinary table has no hidden columns; those exist only in virtual tables, whose columns the module decides. Terminates: one pass over the columns. Source: https://sqlite.org/lang_createtable.html, https://sqlite.org/lang_createtable.html#rowid, https://sqlite.org/withoutrowid.html, https://sqlite.org/stricttables.html, https://sqlite.org/gencol.html. Status: Implemented.

Methods§

public function table(
    CreateTable $definition,
    list<ColumnDomain> $domains,
    TableKey $key,
    LanguageProfile $profile,
): Table

Test cases 11§

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 7

Relations§

Instantiated in 3
Method calls 5