interface StorageOption
    extends Node
Public API: explicitly declared with @visibility public.

An option of a tablespace, undo tablespace or log file group statement.

Mirrors PT_alter_tablespace_option_base and its subclasses (MySQL 8.0) and the fields of st_alter_tablespace (MySQL 5.x). Each statement accepts the options its grammar rule lists. Source: https://dev.mysql.com/doc/refman/8.4/en/create-tablespace.html.

Reading the keyword of an optiondoctest
$create = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("CREATE TABLESPACE ts ADD DATAFILE 'ts.ibd' FILE_BLOCK_SIZE = 8192");
    $create->statement->options[0]->keyword() // => 'FILE_BLOCK_SIZE'

Methods§

public function keyword(): string

Answers the keyword that names the option; WAIT for both WAIT and NO_WAIT.

Returns

string

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§

Implemented by 7
Constant reads 1
Type declarations 2