MySQL 9.1.0
Source Code Documentation
|
Service for adding and removing UDF functions. More...
#include <udf_registration.h>
Public Attributes | |
mysql_service_status_t(* | udf_register )(const char *func_name, enum Item_result return_type, Udf_func_any func, Udf_func_init init_func, Udf_func_deinit deinit_func) |
Registers a UDF function with a given name. More... | |
mysql_service_status_t(* | udf_unregister )(const char *name, int *was_present) |
Unregisters a UDF function with a given name. More... | |
Service for adding and removing UDF functions.
mysql_service_status_t(* s_mysql_udf_registration::udf_register) (const char *func_name, enum Item_result return_type, Udf_func_any func, Udf_func_init init_func, Udf_func_deinit deinit_func) |
Registers a UDF function with a given name.
The name must be unique. Does not store in any table, just updates the global function list. Plugins/components need to handle registration deregistration during their initialization and deinitialization. Registers a scalar UDF by default.
name | name of the function |
return_type | return type. |
func | function to call |
init_func | function to call at query start |
deinit_func | function to call at query cleanup |
false | success |
true | failure |
mysql_service_status_t(* s_mysql_udf_registration::udf_unregister) (const char *name, int *was_present) |
Unregisters a UDF function with a given name.
Does not store in any table, just updates the global function list. Plugins/components need to handle registration deregistration during their initialization and deinitialization.
name | name of the function | |
[out] | was_present | set to non-zero if the UDF was present, but locked |
false | success |
true | failure |