classAbsentRelation
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.
$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§
public QualifiedName $nameMethods§
public function __construct(public QualifiedName $name)Parameters
$name | QualifiedName | The 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.