enumRelationKind
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.
$semantics = new \SqlSemantics\Platform\Sqlite\Semantics();
$semantics->analyze('CREATE TABLE t (a INTEGER)')->declarations()[0]->kind // => \SqlSemantics\Platform\Sqlite\Model\Statement\Declaration\RelationKind::BaseTableCases§
case BaseTablecase Viewcase MaterializedViewcase ForeignTablecase SequenceTest cases 5§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Other tests reaching this symbol 4
Relations§
Constant reads 10
- class-const SqlSemantics\Platform\Sqlite\Model\Statement\Declaration\Table::__construct() packages/sql-semantics-sqlite/src/Model/Statement/Declaration/Table.php:53
- class-const SqlSemantics\Platform\Sqlite\Rules\Mutation\GeneratedWrites::reached() packages/sql-semantics-sqlite/src/Rules/Mutation/GeneratedWrites.php:142
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\CreateView::deriveStatement() packages/sql-semantics-sqlite/src/Statement/Schema/CreateView.php:93
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Refusal\KindRefusal::required() packages/sql-semantics-sqlite/src/Statement/Schema/Refusal/KindRefusal.php:49
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Refusal\KindRefusal::required() packages/sql-semantics-sqlite/src/Statement/Schema/Refusal/KindRefusal.php:49
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Refusal\WrongRelationKind::message() packages/sql-semantics-sqlite/src/Statement/Schema/Refusal/WrongRelationKind.php:44
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Refusal\WrongRelationKind::message() packages/sql-semantics-sqlite/src/Statement/Schema/Refusal/WrongRelationKind.php:45
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Refusal\WrongRelationKind::message() packages/sql-semantics-sqlite/src/Statement/Schema/Refusal/WrongRelationKind.php:46
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Refusal\WrongRelationKind::message() packages/sql-semantics-sqlite/src/Statement/Schema/Refusal/WrongRelationKind.php:47
- class-const SqlSemantics\Platform\Sqlite\Statement\Schema\Refusal\WrongRelationKind::message() packages/sql-semantics-sqlite/src/Statement/Schema/Refusal/WrongRelationKind.php:48