23#ifndef _sql_component_h
24#define _sql_component_h
94 const std::string instance_path);
101 std::string &one_component);
104 bool make_urns(std::vector<const char *> &urns);
This class implements component loading through manifest file.
Definition: sql_component.h:91
std::string components_
Definition: sql_component.h:109
bool loaded_
Definition: sql_component.h:112
bool load()
Definition: sql_component.cc:177
~Deployed_components()
Definition: sql_component.cc:127
std::string last_error_
Definition: sql_component.h:110
std::string program_name_
Definition: sql_component.h:107
bool valid_
Definition: sql_component.h:111
std::string instance_path_
Definition: sql_component.h:108
bool valid() const
Definition: sql_component.h:96
Deployed_components(const std::string program_name, const std::string instance_path)
Definition: sql_component.cc:110
bool make_urns(std::vector< const char * > &urns)
Definition: sql_component.cc:151
bool components_loaded() const
Definition: sql_component.h:97
bool unload()
Definition: sql_component.cc:240
void get_next_component(std::string &components_list, std::string &one_component)
Definition: sql_component.cc:133
A typesafe replacement for DYNAMIC_ARRAY.
Definition: mem_root_array.h:60
This class implements the INSTALL COMPONENT statement.
Definition: sql_component.h:40
Sql_cmd_install_component(const Mem_root_array_YY< LEX_STRING > &urns)
Definition: sql_component.h:42
bool execute(THD *thd) override
Install a new component by loading it by dynamic loader service.
Definition: sql_component.cc:50
const Mem_root_array_YY< LEX_STRING > m_urns
Definition: sql_component.h:59
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_component.h:45
This class implements the UNINSTALL COMPONENT statement.
Definition: sql_component.h:66
const Mem_root_array_YY< LEX_STRING > m_urns
Definition: sql_component.h:85
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_component.h:71
Sql_cmd_uninstall_component(const Mem_root_array_YY< LEX_STRING > &urns)
Definition: sql_component.h:68
bool execute(THD *thd) override
Uninstall a plugin by unloading it in the dynamic loader service.
Definition: sql_component.cc:84
Representation of an SQL command.
Definition: sql_cmd.h:64
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
enum_sql_command
Definition: my_sqlcommand.h:45
@ SQLCOM_INSTALL_COMPONENT
Definition: my_sqlcommand.h:186
@ SQLCOM_UNINSTALL_COMPONENT
Definition: my_sqlcommand.h:187
Representation of an SQL command.