classCloneLocal
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.
$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 $directoryMethods§
public function __construct(public Text $directory)Parameters
$directory | Text | The directory the data is cloned into |
public function deriveStatement(Derivation $derivation): voidHas nothing to derive: the request names no relation and no value.
Parameters
$derivation | Derivation |
public function render(Output $out): voidTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
CloneLocalTestcalls