final class AbsentRelation
    implements TableResolution
    uses Snapshot
Public API: explicitly declared with @visibility public.

A relation name that a complete context does not declare, at a use that tolerates the absence.

DROP TABLE IF EXISTS and DROP VIEW IF EXISTS do nothing when the relation does not exist, so the absence is a resolution and not a problem. Source: https://sqlite.org/lang_droptable.html.

Dropping a table that does not exist without a diagnosticdoctest
$drop = (new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('DROP TABLE IF EXISTS t', []);
    [$drop->facts->relation($drop->statement)->table->name->name->value, $drop->facts->diagnostics] // => ['t', []]

Properties§

Methods§

public function __construct(public QualifiedName $name)

Parameters

$nameQualifiedNameThe name as the statement wrote it

Test cases 2§

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 1

Relations§

Instantiated in 1