enumDefinitionPosition
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.
$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::CheckConstraintCases§
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
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Column\ColumnCheck::deriveConstraint() packages/sql-semantics-sqlite/src/Statement/Schema/Column/ColumnCheck.php:49
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Column\Generated::deriveConstraint() packages/sql-semantics-sqlite/src/Statement/Schema/Column/Generated.php:73
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\CreateIndex::deriveStatement() packages/sql-semantics-sqlite/src/Statement/Schema/CreateIndex.php:110
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\CreateIndex::deriveStatement() packages/sql-semantics-sqlite/src/Statement/Schema/CreateIndex.php:114
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Table\TableCheck::deriveConstraint() packages/sql-semantics-sqlite/src/Statement/Schema/Table/TableCheck.php:52
Type declarations 3
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Expression\Limits packages/sql-semantics-sqlite/src/Rules/Definition/Expression/Limits.php:136
- type SqlSemantics\Platform\Sqlite\Rules\Definition\Expression\Limits packages/sql-semantics-sqlite/src/Rules/Definition/Expression/Limits.php:152
- type SqlSemantics\Platform\Sqlite\Statement\Schema\Limit\ProhibitedExpression packages/sql-semantics-sqlite/src/Statement/Schema/Limit/ProhibitedExpression.php:31