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

IMPORT TABLE: creates MyISAM tables from the metadata files a server exported (MySQL 8.0 and later).

Rule: MYSQL-IMPORT-001. The files are names of the file system the server reads; the tables they describe are not known before the files are read, so the statement provides no declaration and derives no fact. Terminates: no child expression. Source: https://dev.mysql.com/doc/refman/8.4/en/import-table.html. Status: Implemented.

Reading the files of IMPORT TABLEdoctest
$import = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("IMPORT TABLE FROM '/tmp/t1_*.sdi', '/tmp/t2.sdi'");
    [count($import->statement->files), $import->toString()] // => [2, "IMPORT TABLE FROM '/tmp/t1_*.sdi', '/tmp/t2.sdi'"]

Properties§

public list<Text> $files

Methods§

public function __construct(list<Text> $files)

Parameters

$fileslist<Text>The file name patterns; at least one
Calls 2
public function deriveStatement(Derivation $derivation): void

Derives nothing: the statement holds no expression and returns no rows.

Parameters

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

Writes the statement.

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