24#ifndef RESOURCEGROUPS_RESOURCE_GROUP_SQL_CMD_H_ 
   25#define RESOURCEGROUPS_RESOURCE_GROUP_SQL_CMD_H_ 
   47  friend class ::PT_create_resource_group;
 
   78  friend class ::PT_alter_resource_group;
 
   83                               int priority, 
bool enable, 
bool force,
 
  112  friend class ::PT_drop_resource_group;
 
  134  friend class ::PT_set_resource_group;
 
A typesafe replacement for DYNAMIC_ARRAY.
Definition: mem_root_array.h:426
 
Parse tree node for ALTER RESOURCE GROUP statement.
Definition: parse_tree_nodes.h:5107
 
Parse tree node for CREATE RESOURCE GROUP statement.
Definition: parse_tree_nodes.h:5087
 
Parse tree node for DROP RESOURCE GROUP statement.
Definition: parse_tree_nodes.h:5127
 
Parse tree node for SET RESOURCE GROUP statement.
Definition: parse_tree_nodes.h:5141
 
Representation of an SQL command.
Definition: sql_cmd.h:65
 
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
 
Sql_cmd_alter_resource_group represents ALTER RESOURCE GROUP statement.
Definition: resource_group_sql_cmd.h:77
 
bool execute(THD *thd) override
Execute this SQL statement.
Definition: resource_group_sql_cmd.cc:312
 
bool m_enable
Definition: resource_group_sql_cmd.h:102
 
const LEX_CSTRING m_name
Definition: resource_group_sql_cmd.h:99
 
int m_priority
Definition: resource_group_sql_cmd.h:101
 
Sql_cmd_alter_resource_group(const LEX_CSTRING &name, const Mem_root_array< Range > *cpu_list, int priority, bool enable, bool force, bool use_enable)
Definition: resource_group_sql_cmd.h:81
 
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: resource_group_sql_cmd.h:92
 
bool m_use_enable
Definition: resource_group_sql_cmd.h:104
 
bool m_force
Definition: resource_group_sql_cmd.h:103
 
const Mem_root_array< Range > * m_cpu_list
Definition: resource_group_sql_cmd.h:100
 
Sql_cmd_create_resource_group represents CREATE RESOURCE GROUP statement.
Definition: resource_group_sql_cmd.h:46
 
Sql_cmd_create_resource_group(const LEX_CSTRING &name, const Type type, const Mem_root_array< Range > *cpu_list, int priority, bool enabled)
Definition: resource_group_sql_cmd.h:50
 
const Type m_type
Definition: resource_group_sql_cmd.h:67
 
bool m_enabled
Definition: resource_group_sql_cmd.h:70
 
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: resource_group_sql_cmd.h:59
 
int m_priority
Definition: resource_group_sql_cmd.h:69
 
const Mem_root_array< Range > * m_cpu_list
Definition: resource_group_sql_cmd.h:68
 
const LEX_CSTRING m_name
Definition: resource_group_sql_cmd.h:66
 
bool execute(THD *thd) override
Execute this SQL statement.
Definition: resource_group_sql_cmd.cc:190
 
Sql_cmd_drop_resource_group represents DROP RESOURCE GROUP statement.
Definition: resource_group_sql_cmd.h:111
 
bool execute(THD *thd) override
Execute this SQL statement.
Definition: resource_group_sql_cmd.cc:428
 
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: resource_group_sql_cmd.h:118
 
const LEX_CSTRING m_name
Definition: resource_group_sql_cmd.h:125
 
Sql_cmd_drop_resource_group(const LEX_CSTRING &name, bool force)
Definition: resource_group_sql_cmd.h:115
 
bool m_force
Definition: resource_group_sql_cmd.h:126
 
Sql_cmd_set_resource_group represents SET RESOURCE GROUP statement.
Definition: resource_group_sql_cmd.h:133
 
Mem_root_array< ulonglong > * m_thread_id_list
Definition: resource_group_sql_cmd.h:150
 
Sql_cmd_set_resource_group(const LEX_CSTRING &name, Mem_root_array< ulonglong > *thread_id_list)
Definition: resource_group_sql_cmd.h:137
 
bool prepare(THD *thd) override
Prepare this SQL statement.
Definition: resource_group_sql_cmd.cc:711
 
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: resource_group_sql_cmd.h:141
 
bool execute(THD *thd) override
Execute this SQL statement.
Definition: resource_group_sql_cmd.cc:620
 
const LEX_CSTRING m_name
Definition: resource_group_sql_cmd.h:149
 
Some integer typedefs for easier portability.
 
enum_sql_command
Definition: my_sqlcommand.h:46
 
@ SQLCOM_ALTER_RESOURCE_GROUP
Definition: my_sqlcommand.h:197
 
@ SQLCOM_DROP_RESOURCE_GROUP
Definition: my_sqlcommand.h:198
 
@ SQLCOM_SET_RESOURCE_GROUP
Definition: my_sqlcommand.h:199
 
@ SQLCOM_CREATE_RESOURCE_GROUP
Definition: my_sqlcommand.h:196
 
Definition: dd_resource_group.h:29
 
Type
Definition: resource_group_basic_types.h:33
 
required uint32 priority
Definition: replication_group_member_actions.proto:35
 
required string type
Definition: replication_group_member_actions.proto:34
 
required bool enabled
Definition: replication_group_member_actions.proto:33
 
Representation of an SQL command.
 
case opt name
Definition: sslopt-case.h:33
 
Definition: mysql_lex_string.h:40