final class TableOrView
    implements MissingInput
    uses Snapshot
Public API: explicitly declared with @visibility public.

Whether a name denotes a base table or a view, which decides the columns SHOW CREATE TABLE returns.

A declaration states whether a relation is a base table or a view; for a name the context does not declare, the columns depend on that fact. Source: https://dev.mysql.com/doc/refman/8.4/en/show-create-table.html.

Describing the missing factdoctest
(new \SqlSemantics\Platform\MySql\Statement\Utility\Problem\TableOrView(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\QualifiedName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('t'))))->describe() // => 'whether t is a base table or a view'

Properties§

Methods§

public function __construct(public QualifiedName $name)

Parameters

$nameQualifiedNameThe name as the statement wrote it
public function describe(): string

Describes the missing fact.

Returns

string
Test cases 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