classAbsentTable
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.
$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 // => trueProperties§
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.