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

Reports a request that SQLite carries out only for another kind of relation than the one it names.

Rule: SQLITE-RELATION-KIND-001. CREATE VIEW declares a view; every other declaration is a table. Where a name resolves to one declaration, a request that needs the other kind is a diagnostic (KindRefusal), and SQLite refuses it before it looks at anything else of the request. A name that is undeclared, or resolves only conditionally, leaves the kind undecided and is not reported. Writing to a view with INSERT, UPDATE or DELETE succeeds exactly when an INSTEAD OF trigger handles it; a context does not hold triggers, so such writes are not reported. Source: https://sqlite.org/lang_createview.html, https://sqlite.org/lang_createtrigger.html#instead_of_triggers. Status: Implemented.

Methods§

public function refuse(RelationFact $fact, KindRefusal $refusal, Derivation $derivation): bool

Reports a request the kind of the named relation rules out, and tells whether it did.

Parameters

$factRelationFact
$refusalKindRefusal
$derivationDerivation

Returns

bool
Called from 8
Calls 3

Test cases 1§

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

Dedicated tests 1

Relations§

Instantiated in 8
Method calls 8