enum RelationKind
Public API: explicitly declared with @visibility public.

What kind of relation a declaration is.

Statements such as SHOW CREATE TABLE or DROP VIEW behave differently for a base table and a view; the declaration states which one it is.

Reading the kind of a declared viewdoctest
$semantics = new \SqlSemantics\Platform\MySql\Semantics();
    $semantics->analyze('CREATE TABLE t (a INTEGER)')->declarations()[0]->kind // => \SqlSemantics\Platform\MySql\Model\Statement\Declaration\RelationKind::BaseTable

Cases§

case BaseTable
case View
case MaterializedView
case ForeignTable
case Sequence

Test cases 5§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Other tests reaching this symbol 5

Relations§

Constant reads 16
Type declarations 3