MySQL 9.1.0
Source Code Documentation
dd_sp.h
Go to the documentation of this file.
1#ifndef DD_SP_INCLUDED
2#define DD_SP_INCLUDED
3/* Copyright (c) 2016, 2024, Oracle and/or its affiliates.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License, version 2.0,
7 as published by the Free Software Foundation.
8
9 This program is designed to work with certain software (including
10 but not limited to OpenSSL) that is licensed under separate terms,
11 as designated in a particular file or component or in included license
12 documentation. The authors of MySQL hereby grant you an additional
13 permission to link the program and your derivative works with the
14 separately licensed software that they have either included with
15 the program or referenced in the documentation.
16
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License, version 2.0, for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
25
26#include "sql/dd/string_type.h"
27#include "sql/dd/types/routine.h" // dd::Routine
28
29class THD;
30struct st_sp_chistics;
31
32/**
33 Method to prepare sp_chistics object using the dd::Routine object read
34 from the Data Dictionary.
35
36 @param[in] routine Routine object read from the Data Dictionary.
37 @param[out] sp_chistics st_sp_chistics type's object to be prepared from the
38 routine param.
39*/
40
42 st_sp_chistics *sp_chistics);
43
44/**
45 Helper method to prepare stored routine type in string format using the
46 Routine object read from the Data Dictionary.
47
48 @param[in] thd Thread handle.
49 @param[in] routine dd::Routine type object read from the Data
50 Dictionary.
51 @param[out] return_type_str Stored routine return type in string format.
52*/
53
55 THD *thd, const dd::Routine *routine, dd::String_type *return_type_str);
56
57/**
58 Method to prepare stored routine's parameter string using the Routine
59 object read from the Data Dictionary.
60
61 @param[in] thd Thread handle.
62 @param[in] routine dd::Routine type object read from the Data
63 Dictionary.
64 @param[out] params_str String prepared from the all the parameters of
65 stored routine.
66*/
67
69 dd::String_type *params_str);
70
71#endif // DD_SP_INCLUDED
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Abstract base class for functions and procedures.
Definition: routine.h:61
void prepare_params_string_from_dd_routine(THD *thd, const dd::Routine *routine, dd::String_type *params_str)
Method to prepare stored routine's parameter string using the Routine object read from the Data Dicti...
Definition: dd_sp.cc:227
void prepare_sp_chistics_from_dd_routine(const dd::Routine *routine, st_sp_chistics *sp_chistics)
Method to prepare sp_chistics object using the dd::Routine object read from the Data Dictionary.
Definition: dd_sp.cc:61
void prepare_return_type_string_from_dd_routine(THD *thd, const dd::Routine *routine, dd::String_type *return_type_str)
Helper method to prepare stored routine type in string format using the Routine object read from the ...
Definition: dd_sp.cc:199
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
Definition: sql_lex.h:2576