MySQL  8.0.18
Source Code Documentation
udf_list Class Reference

Helper class to maintain a list of registered UDFs per component. More...

Public Member Functions

 ~udf_list ()
 
bool add_scalar (const char *func_name, enum Item_result return_type, Udf_func_any func, Udf_func_init init_func=NULL, Udf_func_deinit deinit_func=NULL)
 
bool add_aggregate (const char *func_name, enum Item_result return_type, Udf_func_any func, Udf_func_add add_func=NULL, Udf_func_clear clear_func=NULL, Udf_func_init init_func=NULL, Udf_func_deinit deinit_func=NULL)
 
bool unregister ()
 

Private Types

typedef std::list< std::string > udf_list_t
 

Private Attributes

udf_list_t set
 

Detailed Description

Helper class to maintain a list of registered UDFs per component.

Instantiate one per component. Initialize and add the UDFs at init(). At deinit() if unregister() passes deinitialize and allow component unload. Otherwise fail the component unload and keep the set for subsequent unloads.

Member Typedef Documentation

◆ udf_list_t

typedef std::list<std::string> udf_list::udf_list_t
private

Constructor & Destructor Documentation

◆ ~udf_list()

udf_list::~udf_list ( )
inline

Member Function Documentation

◆ add_aggregate()

bool udf_list::add_aggregate ( const char *  func_name,
enum Item_result  return_type,
Udf_func_any  func,
Udf_func_add  add_func = NULL,
Udf_func_clear  clear_func = NULL,
Udf_func_init  init_func = NULL,
Udf_func_deinit  deinit_func = NULL 
)
inline

◆ add_scalar()

bool udf_list::add_scalar ( const char *  func_name,
enum Item_result  return_type,
Udf_func_any  func,
Udf_func_init  init_func = NULL,
Udf_func_deinit  deinit_func = NULL 
)
inline

◆ unregister()

bool udf_list::unregister ( )
inline

Member Data Documentation

◆ set

udf_list_t udf_list::set
private

The documentation for this class was generated from the following file: