![]() |
MySQL 9.2.0
Source Code Documentation
|
Services for reading the properties of the Libraries that are imported by the routines. More...
#include <mysql_library.h>
Public Attributes | |
mysql_service_status_t(* | exists )(THD *thd, mysql_cstring_with_length schema_name, mysql_cstring_with_length library_name, mysql_cstring_with_length version, bool *result) |
Checks if library exists. More... | |
mysql_service_status_t(* | init )(THD *thd, mysql_cstring_with_length schema_name, mysql_cstring_with_length library_name, mysql_cstring_with_length version, my_h_library *library_handle) |
Construct a new library object. More... | |
mysql_service_status_t(* | get_body )(my_h_library library_handle, mysql_cstring_with_length *body) |
Get library's body. More... | |
mysql_service_status_t(* | get_language )(my_h_library library_handle, mysql_cstring_with_length *language) |
Get library's language. More... | |
mysql_service_status_t(* | deinit )(my_h_library library_handle) |
Clean up the resources related to a library. More... | |
Services for reading the properties of the Libraries that are imported by the routines.
How to use: my_h_library library_handle; library->init(nullptr, schema, name, version, &library_handle); mysql_cstring_with_length body; library->get_body(library_handle, &body); ... use the body throughout the caller. library->deinit(library_handle);
mysql_service_status_t(* s_mysql_mysql_library::deinit) (my_h_library library_handle) |
Clean up the resources related to a library.
Release the shared read lock.
[in] | library_handle | A handle to the library. |
false | success. |
true | failure. |
mysql_service_status_t(* s_mysql_mysql_library::exists) (THD *thd, mysql_cstring_with_length schema_name, mysql_cstring_with_length library_name, mysql_cstring_with_length version, bool *result) |
Checks if library exists.
[in] | thd | (optional) Thread where the check will be made. current_thd will be used if nullptr. |
[in] | schema_name | Schema where the library is stored. |
[in] | library_name | Name of the library. |
[in] | version | Version of the library. |
[out] | result | True if library exists, false otherwise. |
false | success. |
true | failure. |
mysql_service_status_t(* s_mysql_mysql_library::get_body) (my_h_library library_handle, mysql_cstring_with_length *body) |
Get library's body.
[in] | library_handle | Handle to library. |
[out] | body | Library's body. |
false | Success. |
true | Failure. |
mysql_service_status_t(* s_mysql_mysql_library::get_language) (my_h_library library_handle, mysql_cstring_with_length *language) |
Get library's language.
[in] | library_handle | Handle to library. |
[out] | language | Library's language. |
false | Success. |
true | Failure. |
mysql_service_status_t(* s_mysql_mysql_library::init) (THD *thd, mysql_cstring_with_length schema_name, mysql_cstring_with_length library_name, mysql_cstring_with_length version, my_h_library *library_handle) |
Construct a new library object.
Locks the library object with a shared reentrant read-lock.
[in] | thd | (optional) Thread where the handle will be allocated. current_thd will be used if nullptr. |
[in] | schema_name | Schema where the library is stored. |
[in] | library_name | Name of the library. |
[in] | version | Version of the library. |
[out] | library_handle | A handle to the library object. Must be set to nullptr when calling the function. |
false | success. |
true | failure. |