MySQL 8.4.0
Source Code Documentation
s_mysql_external_program_execution Struct Reference

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...
 

Detailed Description

A service to setup and execute multi-lingual stored procedures.

Member Data Documentation

◆ deinit

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.

Parameters
[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.
Note
: At least one of lang_sp or sp should be provided.
Returns
status of de-initialization
Return values
falseSuccess
trueError

◆ execute

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.

Parameters
[in]lang_spThe stored program state
[in]sp_statementThe statement where this stored program is executed (optional).
Returns
Status of execution
Return values
falseSuccess
trueError

◆ init

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.

Parameters
[in]spThe stored program used for associating language sp state.
[in]sp_statementThe statement where this stored program is created (optional).
[out]lang_spexternal program pointer if created, nullptr otherwise.
Returns
status of initialization
Return values
falseSuccess
trueError

◆ parse

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.

Parameters
[in]lang_spThe stored program state
[in]sp_statementThe statement where this stored program is parsed (optional).
Returns
Status of parsing
Return values
falseSuccess
trueError

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