classCpuRange
final class CpuRange
implements Node
uses Snapshot
Public API: explicitly declared with
@visibility public.One CPU number or range n-m of the VCPU option of a resource group.
Mirrors resourcegroups::Range. Which CPUs exist is a property of the machine the server runs on, which a declaration context does not hold. Source: https://dev.mysql.com/doc/refman/8.4/en/create-resource-group.html.
$range = new \SqlSemantics\Platform\MySql\Statement\Account\ResourceGroup\CpuRange(new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('0'), new \SqlSemantics\Platform\MySql\Statement\Literal\Numeral('3'));
[$range->first->text, $range->last?->text] // => ['0', '3']Properties§
public Numeral $firstpublic Numeral|null $last = nullMethods§
public function render(Output $out): voidWrites the number or the range.
Parameters
$out | Output |
Calls 2
- method-call Output::node() line 41
- method-call Output::symbol() line 43
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
CpuRangeTestcalls
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\Account\ResourceGroupRule::range() packages/sql-semantics-mysql/src/Lowering/Account/ResourceGroupRule.php:133
- new SqlSemantics\Platform\MySql\Lowering\Account\ResourceGroupRule::range() packages/sql-semantics-mysql/src/Lowering/Account/ResourceGroupRule.php:134
Constant reads 2
- class-const SqlSemantics\Platform\MySql\Statement\Account\ResourceGroup\AlterResourceGroup::__construct() packages/sql-semantics-mysql/src/Statement/Account/ResourceGroup/AlterResourceGroup.php:45
- class-const SqlSemantics\Platform\MySql\Statement\Account\ResourceGroup\CreateResourceGroup::__construct() packages/sql-semantics-mysql/src/Statement/Account/ResourceGroup/CreateResourceGroup.php:47