classStorageOption
final class StorageOption
implements TableOption
uses Snapshot
Public API: explicitly declared with
@visibility public.The STORAGE option of an NDB table: DISK or MEMORY.
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) STORAGE DISK');
$create->statement->options[0] instanceof \SqlSemantics\Platform\MySql\Statement\Table\Option\StorageOption // => trueProperties§
public StorageMedium $mediumMethods§
public function __construct(public StorageMedium $medium)Parameters
$medium | StorageMedium | Where the table is stored |
Calls 2
- static-call Check::input() line 33
- class-const StorageMedium::Default() line 33
public function render(Output $out): voidTest 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:185
- new SqlSemantics\Platform\MySql\Lowering\TableDefinition\TableOptionRule::named() packages/sql-semantics-mysql/src/Lowering/TableDefinition/TableOptionRule.php:186