classTableExists
final class TableExists
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.A new table name that a declared table, or a table an earlier rename of the same statement created, already has.
The server rejects the rename with ER_TABLE_EXISTS_ERROR. Source: https://dev.mysql.com/doc/refman/8.4/en/rename-table.html.
(new \SqlSemantics\Platform\MySql\Statement\Alter\Problem\TableExists(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\QualifiedName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('t'))))->message() // => 'Table t already exists.'Properties§
public QualifiedName $nameMethods§
public function __construct(public QualifiedName $name)Parameters
$name | QualifiedName | The new name as the statement wrote it |
public function message(): stringDescribes the problem.
Returns
stringTest cases 1
Test cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.