final class EncryptionOption
    implements StorageOption
    uses Snapshot
Public API: explicitly declared with @visibility public.

ENCRYPTION [=] {'Y' | 'N'}: whether an InnoDB tablespace is encrypted (MySQL 8.0 and later).

The equals sign is optional and not written. The server checks the value when it executes the statement. Source: https://dev.mysql.com/doc/refman/8.4/en/create-tablespace.html.

Holding the optiondoctest
(new \SqlSemantics\Platform\MySql\Statement\Server\Storage\Option\EncryptionOption(new \SqlSemantics\Platform\MySql\Statement\Literal\Text('Y')))->encryption->value // => 'Y'

Properties§

public Text $encryption

Methods§

public function __construct(public Text $encryption)

Parameters

$encryptionTextThe value, 'Y' or 'N' for the server
public function keyword(): string

Answers the keyword of the option.

Returns

string
Test cases 1
public function render(Output $out): void

Writes the option.

Parameters

$outOutput
Calls 1

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