final class DropResourceGroup
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

DROP RESOURCE GROUP name [FORCE] (8.0+).

Mirrors PT_drop_resource_group. Rule: MYSQL-RESOURCE-GROUP-001. Source: https://dev.mysql.com/doc/refman/8.4/en/drop-resource-group.html. Status: Implemented.

Dropping a groupdoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('drop resource group batch force')->statement->force // => true

Properties§

public Name $name
public bool $force = false

Methods§

public function __construct(public Name $name, public bool $force = false)

Parameters

$nameNameThe group name
$forceboolWhether FORCE is written
public function deriveStatement(Derivation $derivation): void

Derives nothing: the statement names no relation and no expression.

Parameters

$derivationDerivation
public function render(Output $out): void

Writes the request.

Parameters

$outOutput
Calls 2

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