final class InspectedTable
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

The table or view a SHOW or DESCRIBE reports on.

The node is the table use: its resolution is the relation fact the operation records for it (MYSQL-SHOW-TARGET-001).

Resolving the inspected tabledoctest
$semantics = new \SqlSemantics\Platform\MySql\Semantics();
    $table = $semantics->analyze('CREATE TABLE t (a INT)');
    $show = $semantics->analyze('SHOW CREATE TABLE t', [$table]);
    $show->facts->relation($show->statement->table)->table->table === $table->declarations()[0] // => true

Properties§

Methods§

public function __construct(public QualifiedName $name)

Parameters

$nameQualifiedNameThe table name with its optional database
Calls 1
public function render(Output $out): void

Writes the database and the table name.

Parameters

$outOutput
Calls 3

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