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

A table option that is neither WITHOUT ROWID nor STRICT.

The grammar accepts any name as an option; SQLite compares the written text with rowid and strict and rejects every other word, a quoted "rowid" included, with "unknown table option". Source: https://sqlite.org/syntax/table-options.html.

Reporting an unknown optiondoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE t (a) WITHOUT oid') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Table option oid is unknown.

Properties§

public TableOption $option

Methods§

public function __construct(public TableOption $option)

Parameters

$optionTableOptionThe option SQLite does not know
public function message(): string

Describes the problem.

Returns

string
Test cases 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