MySQL 8.4.0
Source Code Documentation
Loader Class Reference
Inheritance diagram for Loader:
[legend]

Public Member Functions

void reporter (loglevel, unsigned,...) override
 Intercepts error messages from collation parser/initializer. More...
 
void * read_file (const char *path, size_t *size) override
 Loads a file by its OS path into collation parser/initializer. More...
 
- Public Member Functions inherited from MY_CHARSET_LOADER
 MY_CHARSET_LOADER ()=default
 
virtual ~MY_CHARSET_LOADER ()
 
 MY_CHARSET_LOADER (const MY_CHARSET_LOADER &)=delete
 
 MY_CHARSET_LOADER (const MY_CHARSET_LOADER &&)=delete
 
MY_CHARSET_LOADERoperator= (const MY_CHARSET_LOADER &)=delete
 
MY_CHARSET_LOADERoperator= (const MY_CHARSET_LOADER &&)=delete
 
int add_collation (CHARSET_INFO *cs)
 Collation parser helper function (not overloadable). More...
 
virtual void * once_alloc (size_t)
 Allocate-and-forget version of malloc(). More...
 
virtual void * mem_malloc (size_t size)
 
virtual void mem_free (void *ptr)
 

Member Function Documentation

◆ read_file()

void * Loader::read_file ( const char *  path,
size_t *  size 
)
overridevirtual

Loads a file by its OS path into collation parser/initializer.

Parameters
path'\0'-terminated file path to load
sizeByte size of path
Returns
Pointer to file data on success, otherwise nullptr. This is a caller's responsibility to free this pointer with free().

Implements MY_CHARSET_LOADER.

◆ reporter()

void Loader::reporter ( loglevel  loglevel,
unsigned  errcode,
  ... 
)
inlineoverridevirtual

Intercepts error messages from collation parser/initializer.

Parameters
loglevelERROR_LEVEL or WARNING_LEVEL
errcodeSee include/mysys_err.h

Implements MY_CHARSET_LOADER.


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