final class ResourceGroupRule
Restricted visibility: declared "@visibility SqlSemantics\Platform\MySql". Code outside that scope must not name this declaration.

Lowers the resource group statements (8.0+).

Rule: MYSQL-ACCOUNT-RESOURCE-GROUP-001. Scope: create_resource_group_stmt, alter_resource_group_stmt, drop_resource_group_stmt, set_resource_group_stmt, resource_group_types, opt_resource_group_vcpu_list, vcpu_range_spec_list, vcpu_num_or_range, opt_resource_group_priority, signed_num, opt_resource_group_enable_disable, opt_force, thread_id_list, thread_id_list_options. Numbers keep their exact text; the optional = and commas carry no meaning. Constructs: CreateResourceGroup, AlterResourceGroup, DropResourceGroup, SetResourceGroup, CpuRange, ThreadPriority. Terminates: the lists are flattened iteratively; every other child is a strict subtree. Source: https://dev.mysql.com/doc/refman/8.4/en/resource-groups.html. Status: Implemented.

Methods§

public function __construct(private Lowering $lowering)

Parameters

$loweringLoweringThe lowering this rule belongs to
public function enabled(Node $option): ?bool
public function threads(Node $options): list<Numeral>

Lowers the thread ids of SET RESOURCE GROUP … FOR.

Parameters

$optionsNode

Returns

list<Numeral>

Throws

ImplementationGap When a production has no rule
Called from 1
Calls 4

Private surface 1§

Implementation details, listed for orientation only.

private Lowering $lowering

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§

Instantiated in 1
Method calls 1