enum KindRefusal: string
Public API: explicitly declared with @visibility public.

Why the server refuses a statement for the kind of relation a name denotes; each case holds the problem in the words of the server.

NotView and NotBaseTable are ER_WRONG_OBJECT (1347); a view that DROP TABLE names is ER_BAD_TABLE_ERROR (1051), and one that TRUNCATE TABLE names is ER_NO_SUCH_TABLE (1146), since these statements find base tables only. Source: https://dev.mysql.com/doc/mysql-errors/8.4/en/server-error-reference.html.

Reading the message of a refusaldoctest
\SqlSemantics\Platform\MySql\Statement\Table\Problem\KindRefusal::NotView->value // => 'is not VIEW'

Cases§

case NotView = 'is not VIEW'
case NotBaseTable = 'is not BASE TABLE'
case UnknownTable = 'is a view: DROP TABLE reports it as an unknown table'
case NoSuchTable = "is a view: TRUNCATE TABLE reports that the table doesn't exist"

Test cases 4§

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 3

Relations§

Constant reads 4
Type declarations 2