MySQL 8.4.2
Source Code Documentation
|
#include "sql/sdi_utils.h"
#include <string.h>
#include "my_compiler.h"
#include "my_sys.h"
#include "mysqld_error.h"
Functions | |
bool | create_serialized_meta_data (const char *schema_name, const char *table_name, uchar **meta_data, size_t *meta_data_length) |
This function retrieves serialized meta data from the data dictionary for the given schema and table. More... | |
bool | import_serialized_meta_data (const uchar *meta_data, size_t meta_data_length, bool readonly) |
This function takes the submitted serialized meta data, de-serializes and analyzes it, and merges it into the data dictionary. More... | |
bool | different_serialized_meta_data (const uchar *a_meta_data, size_t a_meta_data_length, const uchar *b_meta_data, size_t b_meta_data_length) |
This function takes the two submitted serialized meta data blobs, and compares them. More... | |
bool create_serialized_meta_data | ( | const char * | schema_name, |
const char * | table_name, | ||
uchar ** | meta_data, | ||
size_t * | meta_data_length | ||
) |
This function retrieves serialized meta data from the data dictionary for the given schema and table.
The serialized meta data may be used for various purposes, such as writing it to a file, shipping it to other processes, etc.
[in] | schema_name | Name of the schema |
[in] | table_name | Name of the table |
[out] | meta_data | The serialized meta data of the table |
[out] | meta_data_length | The size of the meta data blob |
false | Success |
true | Error, e.g. the table was not found in the data dictionary. In this case, the values of 'meta_data_length' and 'meta_data' are not defined. |
bool different_serialized_meta_data | ( | const uchar * | a_meta_data, |
size_t | a_meta_data_length, | ||
const uchar * | b_meta_data, | ||
size_t | b_meta_data_length | ||
) |
This function takes the two submitted serialized meta data blobs, and compares them.
[in] | a_meta_data | First serialized meta data blob |
[in] | a_meta_data_length | Size of the first meta data blob |
[in] | b_meta_data | Second serialized meta data blob |
[in] | b_meta_data_length | Size of the second meta data blob |
false | The two blobs are identical |
true | The two blobs are different |
bool import_serialized_meta_data | ( | const uchar * | meta_data, |
size_t | meta_data_length, | ||
bool | readonly | ||
) |
This function takes the submitted serialized meta data, de-serializes and analyzes it, and merges it into the data dictionary.
[in] | meta_data | The serialized meta data |
[in] | meta_data_length | The size of the meta data blob |
[in] | readonly | Disallow conflict resolution affecting the imported meta data |
false | Success |
true | Error, e.g. a conflict was detected while 'readonly' is set to 'true'. |