final class TableOption
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

One option written after the closing parenthesis of a table definition.

Rule: SQLITE-TABLE-OPTION-001. The grammar accepts WITHOUT name and name for any name. SQLite compares the written text of the name, without regard to ASCII case, with rowid after WITHOUT and with strict otherwise; every other word, and either word in quotes, is the error "unknown table option". The word is therefore kept with its quoting. Source: https://sqlite.org/syntax/table-options.html. Status: Implemented.

Telling a known option from an unknown onedoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('CREATE TABLE t (a PRIMARY KEY) STRICT, WITHOUT "rowid"') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: Table option "rowid" is unknown.

Properties§

public Word $word
public bool $without = false

Methods§

public function __construct(public Word $word, public bool $without = false)

Parameters

$wordWordThe option word with its quoting
$withoutboolWhether WITHOUT is written before the word
public function kind(): ?TableOptionKind
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
Test cases 1
Calls 2

Test cases 5§

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

Dedicated tests 3
Other tests reaching this symbol 2

Relations§

Instantiated in 2
Constant reads 1
Type declarations 2