classSetResourceGroup
final class SetResourceGroup
implements Statement
uses Snapshot
Public API: explicitly declared with
@visibility public.SET RESOURCE GROUP name [FOR thread_id, …] (8.0+): a request to assign threads, or the session's thread, to a resource group.
Mirrors PT_set_resource_group. Rule: MYSQL-RESOURCE-GROUP-001. A thread id written as a decimal or floating number is reported (MYSQL-ACCOUNT-NUMBER-001). Source: https://dev.mysql.com/doc/refman/8.4/en/set-resource-group.html. Status: Implemented.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('set resource group batch for 14 15')->toString() // => 'SET RESOURCE GROUP batch FOR 14, 15'Properties§
public list<Numeral> $threadspublic Name $nameMethods§
Parameters
Calls 2
- static-call Check::listOf() line 44
- class-const Numeral::class() line 44
public function deriveStatement(Derivation $derivation): voidReports a thread id that is no integer.
Parameters
$derivation | Derivation |
Calls 2
- method-call NumberChecks::range() line 53
- new NumberChecks line 53
public function render(Output $out): voidWrites the request.
Parameters
$out | Output |
Calls 2
- method-call Output::keyword() line 62
- class-const NameUse::Label() line 62
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
SetResourceGroupTestcalls
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\Account\ResourceGroupRule::statement() packages/sql-semantics-mysql/src/Lowering/Account/ResourceGroupRule.php:68
- new SqlSemantics\Platform\MySql\Lowering\Account\ResourceGroupRule::statement() packages/sql-semantics-mysql/src/Lowering/Account/ResourceGroupRule.php:69