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

A table option whose value is a number, or DEFAULT for the options that accept it.

The equals sign between the option and its value is optional and is not kept. Source: https://dev.mysql.com/doc/refman/8.4/en/create-table.html#create-table-options.

Reading a table optiondoctest
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('CREATE TABLE t (a INT) AUTO_INCREMENT = 100');
    $create->statement->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Option\NumberOption // => true

Properties§

public Numeral|null $value

Methods§

public function __construct(public NumberOptionKind $kind, public Numeral|null $value)

Parameters

$kindNumberOptionKindThe option
$valueNumeral|nullThe number; null for DEFAULT
Calls 2
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
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