classImportTable
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.
$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> $filesMethods§
public function __construct(list<Text> $files)Parameters
$files | list<Text> | The file name patterns; at least one |
Calls 2
- static-call Check::listOf() line 42
- class-const Text::class() line 42
public function deriveStatement(Derivation $derivation): voidDerives nothing: the statement holds no expression and returns no rows.
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
ImportTableTestcalls