MySQL 8.0.39
Source Code Documentation
|
Service for turning. 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, Udf_func_add add_func, Udf_func_clear clear_func) |
Registers an aggregate UDF function with a given name. More... | |
mysql_service_status_t(* | udf_unregister )(const char *name, int *was_present) |
Unregisters an aggregate UDF function with a given name. More... | |
Service for turning.
mysql_service_status_t(* s_mysql_udf_registration_aggregate::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, Udf_func_add add_func, Udf_func_clear clear_func) |
Registers an aggregate 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. You can use udf_registration::unregister to unregister the function.
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 |
add_func | function to call at adding a row to the current aggregate |
clear_func | function to call at the start of a new aggregate group |
false | success |
true | failure |
mysql_service_status_t(* s_mysql_udf_registration_aggregate::udf_unregister) (const char *name, int *was_present) |
Unregisters an aggregate 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.
Currently it's a synonym for udf_registration::udf_unregister.
name | name of the function | |
[out] | was_present | set to non-zero if the UDF was present, but locked |
false | success |
true | failure |