MySQL 9.0.0
Source Code Documentation
sql_cmd.h File Reference

Representation of an SQL command. More...

#include <assert.h>
#include "my_sqlcommand.h"
#include "sql/select_lex_visitor.h"

Go to the source code of this file.

Classes

class  Sql_cmd
 Representation of an SQL command. More...
 

Enumerations

enum  enum_sql_cmd_type {
  SQL_CMD_UNDETERMINED = 0 , SQL_CMD_DDL = 1 , SQL_CMD_DML = 2 , SQL_CMD_DCL = 4 ,
  SQL_CMD_OTHER = 8
}
 What type of Sql_cmd we're dealing with (DML, DDL, ...). More...
 

Detailed Description

Representation of an SQL command.

Enumeration Type Documentation

◆ enum_sql_cmd_type

What type of Sql_cmd we're dealing with (DML, DDL, ...).

"Other" may be used for commands that are neither DML or DDL, such as shutdown.

Theoretically, a command can run through code paths of both DDL and DML (e.g. CREATE TABLE ... AS SELECT ...), but at this point, a command must identify as only one thing.

Enumerator
SQL_CMD_UNDETERMINED 
SQL_CMD_DDL 
SQL_CMD_DML 
SQL_CMD_DCL 
SQL_CMD_OTHER