MySQL 9.2.0
Source Code Documentation
st_sp_chistics Struct Reference

#include <sql_lex.h>

Public Member Functions

bool add_imported_libraries (mem_root_deque< sp_name_with_alias > &libs, MEM_ROOT *mem_root)
 Add library names to the set of imported libraries. More...
 
bool add_imported_library (std::string_view database, std::string_view name, std::string_view alias, MEM_ROOT *mem_root)
 Add a library to the set of imported libraries. More...
 
bool create_imported_libraries_deque (MEM_ROOT *mem_root)
 
const mem_root_deque< sp_name_with_alias > * get_imported_libraries ()
 Get the set of imported libraries for the routine. More...
 
void reset (void)
 Reset the structure. More...
 

Public Attributes

LEX_CSTRING comment = NULL_CSTR
 
enum enum_sp_suid_behaviour suid = SP_IS_DEFAULT_SUID
 
bool detistic = false
 
enum enum_sp_data_access daccess = SP_DEFAULT_ACCESS
 
LEX_CSTRING language = NULL_CSTR
 CREATE|ALTER ... LANGUAGE <language> More...
 
mem_root_deque< sp_name_with_alias > * m_imported_libraries = nullptr
 List of imported libraries for this routine. More...
 

Member Function Documentation

◆ add_imported_libraries()

bool st_sp_chistics::add_imported_libraries ( mem_root_deque< sp_name_with_alias > &  libs,
MEM_ROOT mem_root 
)
inline

Add library names to the set of imported libraries.

We only allow one USING clause in CREATE statements, so repeated calls to this function should fail.

Parameters
libsSet of libraries to be added
mem_rootMEM_ROOT to use for allocation
Returns
true on failures; false otherwise

◆ add_imported_library()

bool st_sp_chistics::add_imported_library ( std::string_view  database,
std::string_view  name,
std::string_view  alias,
MEM_ROOT mem_root 
)
inline

Add a library to the set of imported libraries.

Parameters
databaseThe library's database.
nameThe library's name.
aliasThe library's alias.
mem_rootMEM_ROOT to use for allocation
Returns
true on failures; false otherwise

◆ create_imported_libraries_deque()

bool st_sp_chistics::create_imported_libraries_deque ( MEM_ROOT mem_root)
inline

◆ get_imported_libraries()

const mem_root_deque< sp_name_with_alias > * st_sp_chistics::get_imported_libraries ( )
inline

Get the set of imported libraries for the routine.

Returns
The set of imported libraries, nullptr if no imported libraries

◆ reset()

void st_sp_chistics::reset ( void  )
inline

Reset the structure.

Member Data Documentation

◆ comment

LEX_CSTRING st_sp_chistics::comment = NULL_CSTR

◆ daccess

enum enum_sp_data_access st_sp_chistics::daccess = SP_DEFAULT_ACCESS

◆ detistic

bool st_sp_chistics::detistic = false

◆ language

LEX_CSTRING st_sp_chistics::language = NULL_CSTR

CREATE|ALTER ... LANGUAGE <language>

◆ m_imported_libraries

mem_root_deque<sp_name_with_alias>* st_sp_chistics::m_imported_libraries = nullptr

List of imported libraries for this routine.

◆ suid

enum enum_sp_suid_behaviour st_sp_chistics::suid = SP_IS_DEFAULT_SUID

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