classSecondaryLoad
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.
(new \SqlSemantics\Platform\MySql\Semantics())->analyze('ALTER TABLE t SECONDARY_LOAD')->statement->commands[0]->load // => trueProperties§
public list<Name> $partitionspublic bool $loadMethods§
public function __construct(public bool $load, list<Name> $partitions = [])Parameters
$load | bool | Whether SECONDARY_LOAD (true) or SECONDARY_UNLOAD (false) is written |
$partitions | list<Name> | The partitions in order; empty for the whole table |
Calls 2
- static-call Check::listOf() line 40
- class-const Name::class() line 40
public function deriveCommand(Derivation $derivation, Environment $scope): voidDerives nothing: the action holds no expression.
Parameters
$derivation | Derivation | |
$scope | Environment |
public function render(Output $out): voidWrites the action.
Parameters
$out | Output |
Calls 4
- method-call Output::keyword() line 55
- method-call Output::symbol() line 60
- method-call Output::name() 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
SecondaryLoadTestcalls
Relations§
Instantiated in 2
- new SqlSemantics\Platform\MySql\Lowering\TableChange\Alter\StandaloneRule::command() packages/sql-semantics-mysql/src/Lowering/TableChange/Alter/StandaloneRule.php:144
- new SqlSemantics\Platform\MySql\Lowering\TableChange\Alter\StandaloneRule::command() packages/sql-semantics-mysql/src/Lowering/TableChange/Alter/StandaloneRule.php:158