24#ifndef UDF_SERVICE_IMPL_H
25#define UDF_SERVICE_IMPL_H
Definition: udf_service_impl.h:122
~Udf_load_service()
Definition: udf_service_impl.cc:106
Udf_load_service()
Definition: udf_service_impl.cc:104
bool init()
Registers the Asynchronous Connection Failover's UDFs.
Definition: udf_service_impl.cc:108
std::vector< Udf_service_impl * > m_udfs_registered
Definition: udf_service_impl.h:125
void register_udf()
Definition: udf_service_impl.cc:124
void unregister_udf()
Definition: udf_service_impl.cc:132
bool deinit()
Unregisters the Asynchronous Connection Failover's UDFs.
Definition: udf_service_impl.cc:116
void add()
Definition: udf_service_impl.h:128
Definition: udf_service_impl.h:61
const mysql_service_registry_t * m_registry
Definition: udf_service_impl.h:64
void set_registry(const mysql_service_registry_t *r)
Save UDF registry service.
Definition: udf_service_impl.h:98
virtual ~Udf_service_impl()=default
bool unregister_udf(const std::string udf_name)
Unregisters the Asynchronous Connection Failover's UDFs.
Definition: udf_service_impl.cc:70
bool deinit()
Release the mysql_service_mysql_udf_metadata service and unregisters the Asynchronous Connection Fail...
Definition: udf_service_impl.cc:94
virtual bool init()=0
Initialize variables, acquires the mysql_service_mysql_udf_metadata from the registry service and reg...
Udf_service_impl()=default
std::vector< std::string > m_udfs_registered
Definition: udf_service_impl.h:67
bool register_udf(Udf_data &e)
Registers the Asynchronous Connection Failover's UDFs.
Definition: udf_service_impl.cc:39
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:86
#define SERVICE_TYPE(name)
Generates the standard Service type name.
Definition: service.h:76
case opt name
Definition: sslopt-case.h:29
Contains all the necessary data to register an UDF in MySQL.
Definition: backup_page_tracker.h:51
const Item_result m_return_type
Definition: udf_service_impl.h:38
udf_data_t(udf_data_t &&other)=delete
Item_result m_return_type
Definition: backup_page_tracker.h:53
const Udf_func_deinit m_deinit_func
Definition: udf_service_impl.h:41
std::string m_name
Definition: backup_page_tracker.h:52
udf_data_t & operator=(udf_data_t &&other)=delete
udf_data_t & operator=(udf_data_t const &)=delete
const std::string m_name
Definition: udf_service_impl.h:37
udf_data_t(const std::string &name, const Item_result return_type, const Udf_func_string func, const Udf_func_init init_func, const Udf_func_deinit deinit_func)
Definition: udf_service_impl.h:42
const Udf_func_init m_init_func
Definition: udf_service_impl.h:40
const Udf_func_string m_func
Definition: udf_service_impl.h:39
udf_data_t(udf_data_t const &)=delete
char *(* Udf_func_string)(UDF_INIT *, UDF_ARGS *, char *, unsigned long *, unsigned char *, unsigned char *)
Definition: udf_registration_types.h:87
void(* Udf_func_deinit)(UDF_INIT *)
Definition: udf_registration_types.h:80
Item_result
Type of the user defined function return slot and arguments.
Definition: udf_registration_types.h:39
bool(* Udf_func_init)(UDF_INIT *, UDF_ARGS *, char *)
Definition: udf_registration_types.h:81
struct udf_data_t Udf_data
Contains all the necessary data to register an UDF in MySQL.