final class ProhibitedExpression
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

An expression of a definition that uses a construct SQLite rejects at its position.

SQLite reports "parameters prohibited in CHECK constraints" and the like when the definition is prepared. Source: https://sqlite.org/lang_createtable.html#check_constraints, https://sqlite.org/partialindex.html, https://sqlite.org/expridx.html, https://sqlite.org/gencol.html.

Reporting a subquery in a partial index conditiondoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE INDEX i ON t (a) WHERE a IN (SELECT 1)') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Subqueries are prohibited in partial index WHERE clauses.

Properties§

public ProhibitedConstruct $construct

Methods§

public function __construct(
    public ProhibitedConstruct $construct,
    public DefinitionPosition $position,
)

Parameters

$constructProhibitedConstructWhat the expression uses
$positionDefinitionPositionWhere it is used
public function message(): string

Describes the problem.

Returns

string
Test cases 1
Calls 2

Test cases 3§

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 2

Relations§

Instantiated in 1