final class ValidationOption
    implements AlterModifier
    uses Snapshot
Public API: explicitly declared with @visibility public.

WITH VALIDATION or WITHOUT VALIDATION (5.7 and later): whether the server checks rows against generated columns or an exchanged partition.

Source: https://dev.mysql.com/doc/refman/8.4/en/alter-table.html, https://dev.mysql.com/doc/refman/8.4/en/partitioning-management-exchange.html.

Skipping the row validationdoctest
(new \SqlSemantics\Platform\MySql\Statement\Alter\Modifier\ValidationOption(false))->validate // => false

Properties§

public bool $validate

Methods§

public function __construct(public bool $validate)

Parameters

$validateboolWhether WITH (true) or WITHOUT (false) is written
public function deriveCommand(Derivation $derivation, Environment $scope): void

Derives nothing: the option holds no expression.

Parameters

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

Writes the option.

Parameters

$outOutput
Calls 1

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1
Type declarations 2