MySQL  8.0.27
Source Code Documentation
Udf_charset_service Class Reference

#include <udf_service_util.h>

Public Member Functions

 Udf_charset_service ()=default
 
 ~Udf_charset_service ()=default
 
std::string get_charset ()
 Get the current character set getting used. More...
 

Static Public Member Functions

static std::string get_service_name ()
 Get service name. More...
 
static void set_charset (std::string charset_name)
 Set the specified character set. More...
 
static bool set_return_value_charset (UDF_INIT *initid)
 Set the specified character set of UDF return value. More...
 
static bool set_args_charset (UDF_ARGS *args)
 Set the specified character set of all UDF arguments. More...
 

Static Private Member Functions

static bool deinit ()
 Release the udf_metadata_service from the registry service. More...
 
static bool init ()
 Acquires the udf_metadata_service from the registry service. More...
 

Static Private Attributes

static std::string m_service_name {"mysql_udf_metadata"}
 
static std::string m_charset_name {"latin1"}
 
static std::string m_arg_type {"charset"}
 

Constructor & Destructor Documentation

◆ Udf_charset_service()

Udf_charset_service::Udf_charset_service ( )
default

◆ ~Udf_charset_service()

Udf_charset_service::~Udf_charset_service ( )
default

Member Function Documentation

◆ deinit()

bool Udf_charset_service::deinit ( void  )
staticprivate

Release the udf_metadata_service from the registry service.

Return values
trueif service could not be acquired
falseOtherwise

◆ get_charset()

std::string Udf_charset_service::get_charset ( )
inline

Get the current character set getting used.

Return values
Characterset name.

◆ get_service_name()

static std::string Udf_charset_service::get_service_name ( )
inlinestatic

Get service name.

Returns
Service name.

◆ init()

bool Udf_charset_service::init ( void  )
staticprivate

Acquires the udf_metadata_service from the registry service.

Return values
trueif service could not be acquired
falseOtherwise

◆ set_args_charset()

bool Udf_charset_service::set_args_charset ( UDF_ARGS args)
static

Set the specified character set of all UDF arguments.

Parameters
[in]argsUDF_ARGS structure
Return values
trueCould not set the character set of any of the argument
falseOtherwise

◆ set_charset()

static void Udf_charset_service::set_charset ( std::string  charset_name)
inlinestatic

Set the specified character set.

Parameters
[in]charset_nameCharacter set that has to be set.

◆ set_return_value_charset()

bool Udf_charset_service::set_return_value_charset ( UDF_INIT initid)
static

Set the specified character set of UDF return value.

Parameters
[in]initidUDF_INIT structure
Return values
trueCould not set the character set of return value
falseOtherwise

Member Data Documentation

◆ m_arg_type

std::string Udf_charset_service::m_arg_type {"charset"}
staticprivate

◆ m_charset_name

std::string Udf_charset_service::m_charset_name {"latin1"}
staticprivate

◆ m_service_name

std::string Udf_charset_service::m_service_name {"mysql_udf_metadata"}
staticprivate

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