final class SetTableOptions
    implements AlterCommand
    uses Snapshot
Public API: explicitly declared with @visibility public.

Table options written one after the other without commas, such as ENGINE = InnoDB COMMENT = 'x'.

The server adds each option of the run to the action list of ALTER TABLE (PT_create_table_option); options separated by commas are separate runs. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-table.html#alter-table-options.

Changing the storage engine and the commentdoctest
$alter = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("ALTER TABLE t ENGINE = InnoDB COMMENT = 'x'");
    count($alter->statement->commands[0]->options) // => 2

Properties§

public list<TableOption> $options

Methods§

public function __construct(list<TableOption> $options)

Parameters

$optionslist<TableOption>The options in order; at least one
Calls 3
public function deriveCommand(Derivation $derivation, Environment $scope): void

Derives the options.

Parameters

$derivationDerivation
$scopeEnvironment
Calls 2
public function render(Output $out): void

Writes the options.

Parameters

$outOutput
Calls 1

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 2