final class CloneLocal
    implements Statement
    uses Snapshot
Public API: explicitly declared with @visibility public.

CLONE LOCAL DATA DIRECTORY [=] 'directory': a request to clone the local server's data into a directory (MySQL 8.0.17 and later).

Mirrors Sql_cmd_clone for a local clone. Rule: MYSQL-CLONE-LOCAL-001. The equals sign is optional and not written. The statement names no relation and has no facts. Source: https://dev.mysql.com/doc/refman/8.4/en/clone.html. Status: Implemented.

Cloning into a directorydoctest
$clone = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("clone local data directory = '/srv/copy'");
    [$clone->toString(), $clone->statement->directory->value] // => ["CLONE LOCAL DATA DIRECTORY '/srv/copy'", '/srv/copy']

Properties§

public Text $directory

Methods§

public function __construct(public Text $directory)

Parameters

$directoryTextThe directory the data is cloned into
public function deriveStatement(Derivation $derivation): void

Has nothing to derive: the request names no relation and no value.

Parameters

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

Writes the request.

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
Type declarations 1