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

The SECONDARY_ENGINE option (MySQL 8.0.13 and later): the secondary storage engine, or NULL for none.

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) SECONDARY_ENGINE = NULL');
    $create->statement->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Option\SecondaryEngineOption // => true

Properties§

public Name|null $engine

Methods§

public function __construct(public Name|null $engine)

Parameters

$engineName|nullThe secondary engine; null for NULL
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
Calls 3

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