MySQL  8.0.15
Source Code Documentation
test_udf_registration.cc File Reference
#include <assert.h>
#include <mysql/components/component_implementation.h>
#include <mysql/components/service_implementation.h>
#include <mysql/components/services/udf_registration.h>
#include <stdbool.h>
#include <list>
#include <string>
#include "my_compiler.h"

Classes

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

Namespaces

 udf_impl
 

Functions

 REQUIRES_SERVICE_PLACEHOLDER (udf_registration)
 
 REQUIRES_SERVICE_PLACEHOLDER (udf_registration_aggregate)
 
static bool udf_impl::dynamic_udf_init (UDF_INIT *initid, UDF_ARGS *, char *)
 
static void udf_impl::dynamic_udf_deinit (UDF_INIT *initid)
 
static long long udf_impl::dynamic_udf (UDF_INIT *initid, UDF_ARGS *, unsigned char *is_null, unsigned char *error)
 
static void udf_impl::dynamic_agg_deinit (UDF_INIT *initid)
 
static long long udf_impl::dynamic_agg (UDF_INIT *initid, UDF_ARGS *, unsigned char *is_null, unsigned char *error)
 
static void udf_impl::dynamic_agg_clear (UDF_INIT *initid, unsigned char *, unsigned char *)
 
static void udf_impl::dynamic_agg_add (UDF_INIT *initid, UDF_ARGS *, unsigned char *, unsigned char *)
 
static mysql_service_status_t init ()
 
static mysql_service_status_t deinit ()
 
 END_COMPONENT_PROVIDES ()
 
 REQUIRES_SERVICE (udf_registration)
 
 REQUIRES_SERVICE (udf_registration_aggregate)
 
 END_COMPONENT_REQUIRES ()
 
 METADATA ("mysql.author", "Oracle Corporation")
 
 METADATA ("mysql.license", "GPL")
 
 METADATA ("test_property", "1")
 
 END_COMPONENT_METADATA ()
 

Variables

class udf_listlist
 
const char * udf_impl::test_init = "test_init"
 
const char * udf_impl::test_udf = "test_udf"
 
const char * udf_impl::test_udf_clear = "test_clear"
 
const char * udf_impl::test_udf_add = "test_udf_add"
 
mysql_component_t mysql_component_test_udf_registration
 

Function Documentation

◆ deinit()

static mysql_service_status_t deinit ( )
static

◆ END_COMPONENT_METADATA()

END_COMPONENT_METADATA ( )

◆ END_COMPONENT_PROVIDES()

END_COMPONENT_PROVIDES ( )

◆ END_COMPONENT_REQUIRES()

END_COMPONENT_REQUIRES ( )

◆ init()

static mysql_service_status_t init ( )
static

◆ METADATA() [1/3]

METADATA ( "mysql.author"  ,
"Oracle Corporation"   
)

◆ METADATA() [2/3]

METADATA ( "mysql.license"  ,
"GPL"   
)

◆ METADATA() [3/3]

METADATA ( "test_property"  ,
"1"   
)

◆ REQUIRES_SERVICE() [1/2]

REQUIRES_SERVICE ( udf_registration  )

◆ REQUIRES_SERVICE() [2/2]

REQUIRES_SERVICE ( udf_registration_aggregate  )

◆ REQUIRES_SERVICE_PLACEHOLDER() [1/2]

REQUIRES_SERVICE_PLACEHOLDER ( udf_registration  )

◆ REQUIRES_SERVICE_PLACEHOLDER() [2/2]

REQUIRES_SERVICE_PLACEHOLDER ( udf_registration_aggregate  )

Variable Documentation

◆ list

class udf_list * list

◆ mysql_component_test_udf_registration

mysql_component_t mysql_component_test_udf_registration
Initial value:
= { "mysql:test_udf_registration" , __test_udf_registration_provides, __test_udf_registration_requires, __test_udf_registration_metadata,
static mysql_service_status_t init()
Definition: test_udf_registration.cc:152
static mysql_service_status_t deinit()
Definition: test_udf_registration.cc:176