classByteSize
final class ByteSize
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.A size in bytes: a plain number, or a word such as 16M that the lexer reads as an identifier.
A number followed at once by a letter is one identifier token; the server reads the letters K, M and G as multipliers and rejects any other word. The word is kept as written. Source: https://dev.mysql.com/doc/refman/8.4/en/create-tablespace.html.
(new \SqlSemantics\Platform\MySql\Statement\Literal\ByteSize(null, new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('16M')))->word?->value // => '16M'Properties§
public Numeral|null $numberpublic Name|null $word = nullMethods§
Parameters
Calls 1
- static-call Check::input() line 36
public function render(Output $out): voidWrites the number or the word.
Parameters
$out | Output |
Test cases 2
Calls 3
- method-call Output::name() line 45
- class-const NameUse::Label() line 45
- method-call Output::node() line 47
Test cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 2
Relations§
Instantiated in 2
Type declarations 5
- type SqlSemantics\Platform\MySql\Lowering\Leaf\NumberRule packages/sql-semantics-mysql/src/Lowering/Leaf/NumberRule.php:96
- type SqlSemantics\Platform\MySql\Rules\Server\StorageOptions packages/sql-semantics-mysql/src/Rules/Server/StorageOptions.php:152
- type SqlSemantics\Platform\MySql\Statement\Dml\Load\BulkOptions packages/sql-semantics-mysql/src/Statement/Dml/Load/BulkOptions.php:35
- type SqlSemantics\Platform\MySql\Statement\Server\Storage\Option\SizeOption packages/sql-semantics-mysql/src/Statement/Server/Storage/Option/SizeOption.php:31
- type SqlSemantics\Platform\MySql\Statement\Table\Option\AutoextendSizeOption packages/sql-semantics-mysql/src/Statement/Table/Option/AutoextendSizeOption.php:30