classSecondaryEngineOption
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.
$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 // => trueProperties§
public Name|null $engineMethods§
public function __construct(public Name|null $engine)Parameters
$engine | Name|null | The secondary engine; null for NULL |
public function render(Output $out): voidWrites the option.
Parameters
$out | Output |
Calls 3
- method-call Output::keyword() line 40
- method-call Output::name() line 44
- class-const NameUse::Label() line 44
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
- new SqlSemantics\Platform\MySql\Lowering\TableDefinition\TableOptionRule::named() packages/sql-semantics-mysql/src/Lowering/TableDefinition/TableOptionRule.php:176
- new SqlSemantics\Platform\MySql\Lowering\TableDefinition\TableOptionRule::named() packages/sql-semantics-mysql/src/Lowering/TableDefinition/TableOptionRule.php:177