classValidationOption
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.
(new \SqlSemantics\Platform\MySql\Statement\Alter\Modifier\ValidationOption(false))->validate // => falseProperties§
public bool $validateMethods§
public function __construct(public bool $validate)Parameters
$validate | bool | Whether WITH (true) or WITHOUT (false) is written |
public function deriveCommand(Derivation $derivation, Environment $scope): voidDerives nothing: the option holds no expression.
Parameters
$derivation | Derivation | |
$scope | Environment |
public function render(Output $out): voidTest cases 2§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ValidationOptionTestcalls
Other tests reaching this symbol 1
Relations§
Instantiated in 1
Type declarations 2
- type SqlSemantics\Platform\MySql\Lowering\TableChange\Alter\ModifierRule packages/sql-semantics-mysql/src/Lowering/TableChange/Alter/ModifierRule.php:169
- type SqlSemantics\Platform\MySql\Statement\Alter\Partition\ExchangePartition packages/sql-semantics-mysql/src/Statement/Alter/Partition/ExchangePartition.php:40