classMissingTable
final class MissingTable
implements TableResolution, Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A relation name that a complete context does not declare.
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT a FROM t', []) // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: Relation t does not exist.Properties§
public QualifiedName $nameMethods§
public function __construct(public QualifiedName $name)Parameters
$name | QualifiedName | The name as the statement wrote it |
public function message(): stringDescribes the problem.
Returns
stringTest cases 6§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 6
TargetsTest::testExistingOpensTheShapeOfAMissingRelationUnderIfExistscallsTypeLookupTest::testColumnDependsOnAnUndeclaredRelationAndReportsAMissingOnecallsColumnStarTest::testDeriveScalarReportsARelationThatIsNotVisiblecallsInheritanceChangeTest::testDeriveClauseResolvesTheParentcallsDetachPartitionTest::testDeriveClauseResolvesThePartitioncallsTruncateTableTest::testDeriveStatementResolvesEachTablecalls
Relations§
Instantiated in 2
Type checks 3
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Access\GrantedRelations::derive() packages/sql-semantics-postgres/src/Rules/Access/GrantedRelations.php:51
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Routine\RelationTargets::record() packages/sql-semantics-postgres/src/Rules/Routine/RelationTargets.php:98
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Table\Targets::existing() packages/sql-semantics-postgres/src/Rules/Table/Targets.php:77