classUndeclaredTable
final class UndeclaredTable
implements TableResolution
uses Snapshot
Public API: explicitly declared with
@visibility public.A relation name an open context has no declaration for; it may exist in the database.
$query = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('SELECT a FROM t');
$query->facts->relation($query->inputRelation())->table->missing->name->name->value // => 't'Properties§
public UndeclaredRelation $missingMethods§
public function __construct(public UndeclaredRelation $missing)Parameters
$missing | UndeclaredRelation | The missing declaration |
Test cases 11§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 11
RelationTargetsTest::testRecordKeepsAnUndeclaredRelationOpencallsMaintenanceFactsTest::testTargetsClaimsNothingAboutAnUndeclaredTablecallsCreateIndexTest::testDeriveElementLocatesTheTableInTheSchemacallsSchemaElementTest::testDeriveElementLocatesTheTableInTheSchemacallsCreateConstraintTriggerTest::testDeriveElementLocatesTheTableInTheSchemacallsCreateTriggerTest::testDeriveElementLocatesTheTableInTheSchemacallsAnalyzeTest::testDeriveStatementResolvesEachTablecallsClusterTest::testDeriveStatementResolvesTheTablecallsLockTest::testDeriveStatementResolvesEachTablecallsReindexTest::testDeriveStatementResolvesTheTableOfReindexTablecallsVacuumTest::testDeriveStatementResolvesEachTablecalls
Relations§
Instantiated in 2
Type checks 6
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Access\GrantedRelations::derive() packages/sql-semantics-postgres/src/Rules/Access/GrantedRelations.php:62
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Catalog\PublishedTables::derive() packages/sql-semantics-postgres/src/Rules/Catalog/PublishedTables.php:58
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Resolution\TableShapes::input() packages/sql-semantics-postgres/src/Rules/Resolution/TableShapes.php:81
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Routine\RelationTargets::record() packages/sql-semantics-postgres/src/Rules/Routine/RelationTargets.php:108
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Table\Targets::resolve() packages/sql-semantics-postgres/src/Rules/Table/Targets.php:58
- instanceof SqlSemantics\Platform\PostgreSql\Rules\Typing\TypeLookup::column() packages/sql-semantics-postgres/src/Rules/Typing/TypeLookup.php:97