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.

Describing the problemdoctest
(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§

Methods§

public function __construct(public QualifiedName $name)

Parameters

$nameQualifiedNameThe new name as the statement wrote it
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 2