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

A word after the expression of a generated column that is neither VIRTUAL nor STORED.

The grammar accepts any identifier; SQLite compares the written text with virtual and stored and rejects every other word, a quoted one included. Source: https://sqlite.org/gencol.html.

Reporting an unknown storage worddoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE t (a, b AS (a) PERSISTED)') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Generated column storage PERSISTED is neither VIRTUAL nor STORED.

Properties§

public Word $word

Methods§

public function __construct(public Word $word)

Parameters

$wordWordThe written word
public function message(): string

Describes the problem.

Returns

string
Test cases 1
Calls 1

Test cases 2§

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 1

Relations§

Instantiated in 1