final class SecondaryLoad
    implements StandaloneCommand
    uses Snapshot
Public API: explicitly declared with @visibility public.

SECONDARY_LOAD or SECONDARY_UNLOAD (8.0 and later), with PARTITION (p, …) from 9.0 on: a request to load the table into or unload it from its secondary engine.

Mirrors PT_alter_table_secondary_load and PT_alter_table_secondary_unload. Source: https://dev.mysql.com/doc/refman/8.4/en/alter-table.html.

Loading a table into the secondary enginedoctest
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER TABLE t SECONDARY_LOAD')->statement->commands[0]->load // => true

Properties§

public list<Name> $partitions
public bool $load

Methods§

public function __construct(public bool $load, list<Name> $partitions = [])

Parameters

$loadboolWhether SECONDARY_LOAD (true) or SECONDARY_UNLOAD (false) is written
$partitionslist<Name>The partitions in order; empty for the whole table
Calls 2
public function deriveCommand(Derivation $derivation, Environment $scope): void

Derives nothing: the action holds no expression.

Parameters

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

Writes the action.

Parameters

$outOutput
Calls 4

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 2