24#ifndef _sql_component_h
25#define _sql_component_h
103 const std::string instance_path);
110 std::string &one_component);
113 bool make_urns(std::vector<const char *> &urns);
This class implements component loading through manifest file.
Definition: sql_component.h:100
std::string components_
Definition: sql_component.h:118
bool loaded_
Definition: sql_component.h:121
bool load()
Definition: sql_component.cc:269
~Deployed_components()
Definition: sql_component.cc:219
std::string last_error_
Definition: sql_component.h:119
std::string program_name_
Definition: sql_component.h:116
bool valid_
Definition: sql_component.h:120
std::string instance_path_
Definition: sql_component.h:117
bool valid() const
Definition: sql_component.h:105
Deployed_components(const std::string program_name, const std::string instance_path)
Definition: sql_component.cc:202
bool make_urns(std::vector< const char * > &urns)
Definition: sql_component.cc:243
bool components_loaded() const
Definition: sql_component.h:106
bool unload()
Definition: sql_component.cc:338
void get_next_component(std::string &components_list, std::string &one_component)
Definition: sql_component.cc:225
Definition: sql_list.h:467
A typesafe replacement for DYNAMIC_ARRAY.
Definition: mem_root_array.h:61
Wrapper class for an Item list head, used to allocate Item lists in the parser in a context-independe...
Definition: parse_tree_helpers.h:105
This class implements the INSTALL COMPONENT statement.
Definition: sql_component.h:44
char ** m_arg_list
Definition: sql_component.h:63
int m_arg_list_size
Definition: sql_component.h:64
List< PT_install_component_set_element > * m_set_exprs
Definition: sql_component.h:68
bool execute(THD *thd) override
Install a new component by loading it by dynamic loader service.
Definition: sql_component.cc:52
Sql_cmd_install_component(const Mem_root_array_YY< LEX_STRING > &urns, List< PT_install_component_set_element > *set_exprs)
Definition: sql_component.h:46
const Mem_root_array_YY< LEX_STRING > m_urns
Definition: sql_component.h:67
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_component.h:50
This class implements the UNINSTALL COMPONENT statement.
Definition: sql_component.h:75
const Mem_root_array_YY< LEX_STRING > m_urns
Definition: sql_component.h:94
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_component.h:80
Sql_cmd_uninstall_component(const Mem_root_array_YY< LEX_STRING > &urns)
Definition: sql_component.h:77
bool execute(THD *thd) override
Uninstall a plugin by unloading it in the dynamic loader service.
Definition: sql_component.cc:176
Representation of an SQL command.
Definition: sql_cmd.h:83
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_INSTALL_COMPONENT
Definition: my_sqlcommand.h:187
@ SQLCOM_UNINSTALL_COMPONENT
Definition: my_sqlcommand.h:188
Representation of an SQL command.
Definition: parser_yystype.h:333