interfaceStorageOption
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.
$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(): stringAnswers the keyword that names the option; WAIT for both WAIT and NO_WAIT.
Returns
stringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
StorageOptionTestcalls
Relations§
Implemented by 7
- CommentOption packages/sql-semantics-mysql/src/Statement/Server/Storage/Option/CommentOption.php:21
- EncryptionOption packages/sql-semantics-mysql/src/Statement/Server/Storage/Option/EncryptionOption.php:21
- EngineAttributeOption packages/sql-semantics-mysql/src/Statement/Server/Storage/Option/EngineAttributeOption.php:21
- EngineOption packages/sql-semantics-mysql/src/Statement/Server/Storage/Option/EngineOption.php:22
- NodegroupOption packages/sql-semantics-mysql/src/Statement/Server/Storage/Option/NodegroupOption.php:21
- SizeOption packages/sql-semantics-mysql/src/Statement/Server/Storage/Option/SizeOption.php:23
- WaitOption packages/sql-semantics-mysql/src/Statement/Server/Storage/Option/WaitOption.php:20