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

The resolution of a table name that a complete context does not declare and IF EXISTS allows to be absent.

DROP TABLE IF EXISTS of such a table succeeds; the server only adds a note. It is not a diagnostic. Source: https://dev.mysql.com/doc/refman/8.4/en/drop-table.html.

Resolving an absent table that IF EXISTS allowsdoctest
$drop = (new \SqlSemantics\Platform\MySql\Semantics())->analyze('DROP TABLE IF EXISTS t', []);
    $drop->facts->relation($drop->statement->tables[0])->table instanceof \SqlSemantics\Platform\MySql\Statement\Alter\AbsentTable // => true

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