enum DefinitionPosition: string
Public API: explicitly declared with @visibility public.

The positions inside a definition whose expressions SQLite resolves against the table itself, each with its own limits.

The value is the phrase SQLite uses for the position in its error message. Source: https://sqlite.org/lang_createtable.html#check_constraints, https://sqlite.org/partialindex.html, https://sqlite.org/expridx.html, https://sqlite.org/gencol.html.

Reading the position of a prohibited expressiondoctest
$create = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE t (a CHECK (a > ?))');
    $create->facts->diagnostics[0]->position // => \SqlSemantics\Platform\Sqlite\Statement\Schema\Limit\DefinitionPosition::CheckConstraint

Cases§

case CheckConstraint = 'CHECK constraints'
case PartialIndexWhere = 'partial index WHERE clauses'
case IndexExpression = 'index expressions'
case GeneratedColumn = 'generated columns'

Test cases 4§

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

Dedicated tests 1
Other tests reaching this symbol 3

Relations§

Constant reads 5
Type declarations 3