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

The TABLESPACE option: the tablespace that stores the table.

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

Properties§

public Name $tablespace

Methods§

public function __construct(public Name $tablespace)

Parameters

$tablespaceNameThe tablespace
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
Calls 2

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