MySQL 8.4.2
Source Code Documentation
|
A service to setup and execute multi-lingual stored procedures. More...
#include <language_service.h>
Public Attributes | |
mysql_service_status_t(* | init )(stored_program_handle sp, stored_program_statement_handle sp_statement, external_program_handle *lang_sp) |
Create and initialize stored program state if language is supported. More... | |
mysql_service_status_t(* | deinit )(THD *thd, external_program_handle lang_sp, stored_program_handle sp) |
Deinits and cleans up stored program state. More... | |
mysql_service_status_t(* | parse )(external_program_handle lang_sp, stored_program_statement_handle sp_statement) |
Parse given external program. More... | |
mysql_service_status_t(* | execute )(external_program_handle lang_sp, stored_program_statement_handle sp_statement) |
Execute given external program. More... | |
A service to setup and execute multi-lingual stored procedures.
mysql_service_status_t(* s_mysql_external_program_execution::deinit) (THD *thd, external_program_handle lang_sp, stored_program_handle sp) |
Deinits and cleans up stored program state.
[in] | thd | (optional) The THD this stored program was attached to. |
[in] | lang_sp | (optional) The stored program state to clean up. |
[in] | sp | (optional) The stored program used for associating language sp state when lang_sp was created. |
false | Success |
true | Error |
mysql_service_status_t(* s_mysql_external_program_execution::execute) (external_program_handle lang_sp, stored_program_statement_handle sp_statement) |
Execute given external program.
[in] | lang_sp | The stored program state |
[in] | sp_statement | The statement where this stored program is executed (optional). |
false | Success |
true | Error |
mysql_service_status_t(* s_mysql_external_program_execution::init) (stored_program_handle sp, stored_program_statement_handle sp_statement, external_program_handle *lang_sp) |
Create and initialize stored program state if language is supported.
[in] | sp | The stored program used for associating language sp state. |
[in] | sp_statement | The statement where this stored program is created (optional). |
[out] | lang_sp | external program pointer if created, nullptr otherwise. |
false | Success |
true | Error |
mysql_service_status_t(* s_mysql_external_program_execution::parse) (external_program_handle lang_sp, stored_program_statement_handle sp_statement) |
Parse given external program.
[in] | lang_sp | The stored program state |
[in] | sp_statement | The statement where this stored program is parsed (optional). |
false | Success |
true | Error |