MySQL 9.1.0
Source Code Documentation
|
Class that acquire/release the udf_metadata_service from registry service. More...
#include <udf_utils.h>
Static Public Member Functions | |
static bool | init (const mysql_service_registry_t *reg_srv) |
Acquires the udf_metadata_service from the registry service. More... | |
static bool | deinit (const mysql_service_registry_t *reg_srv) |
Release the udf_metadata service. More... | |
static bool | set_return_value_charset (UDF_INIT *initid, const std::string &charset_name="latin1") |
Set the specified character set of UDF return value. More... | |
static bool | set_args_charset (UDF_ARGS *args, const std::string &charset_name="latin1") |
Set the specified character set of all UDF arguments. More... | |
Static Private Attributes | |
static const char * | arg_type |
static const char * | service_name |
static const mysql_service_mysql_udf_metadata_t * | udf_metadata_service |
Class that acquire/release the udf_metadata_service from registry service.
It provides the APIs to set the character set of return value and arguments of UDFs using the udf_metadata service.
|
static |
Release the udf_metadata service.
[in] | reg_srv | Registry service from which the udf_metadata service will be released. |
true | if service could not be released |
false | Otherwise |
|
static |
Acquires the udf_metadata_service from the registry service.
[in] | reg_srv | Registry service from which udf_metadata service will be acquired |
true | if service could not be acquired |
false | Otherwise |
|
static |
Set the specified character set of all UDF arguments.
[in] | args | UDF_ARGS structure |
[in] | charset_name | Character set that has to be set. The default charset is set to 'latin1' |
true | Could not set the character set of any of the argument |
false | Otherwise |
|
static |
Set the specified character set of UDF return value.
[in] | initid | UDF_INIT structure |
[in] | charset_name | Character set that has to be set. The default charset is set to 'latin1' |
true | Could not set the character set of return value |
false | Otherwise |
|
staticprivate |
|
staticprivate |
|
staticprivate |