MySQL 8.4.0
Source Code Documentation
dict0priv.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 2010, 2024, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is designed to work with certain software (including
10but not limited to OpenSSL) that is licensed under separate terms,
11as designated in a particular file or component or in included license
12documentation. The authors of MySQL hereby grant you an additional
13permission to link the program and your derivative works with the
14separately licensed software that they have either included with
15the program or referenced in the documentation.
16
17This program is distributed in the hope that it will be useful, but WITHOUT
18ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20for more details.
21
22You should have received a copy of the GNU General Public License along with
23this program; if not, write to the Free Software Foundation, Inc.,
2451 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
26*****************************************************************************/
27
28/** @file include/dict0priv.h
29 Data dictionary private functions
30
31 Created Fri 2 Jul 2010 13:30:38 EST - Sunny Bains
32 *******************************************************/
33
34#ifndef dict0priv_h
35#define dict0priv_h
36
37#include "univ.i"
38
39/** Gets a table; loads it to the dictionary cache if necessary. A low-level
40function. Note: Not to be called from outside dict0*c functions.
41@param[in] table_name the table name
42@param[in] prev_table previous table name. The current table load
43 is happening because of the load of the
44 previous table name. This parameter is used
45 to check for cyclic calls.
46@return table, NULL if not found */
48 const char *table_name,
49 const std::string *prev_table = nullptr); /*!< in: table name */
50
51/** Checks if a table is in the dictionary cache.
52 @return table, NULL if not found */
54 const char *table_name); /*!< in: table name */
55
56#include "dict0priv.ic"
57
58#endif /* dict0priv.h */
dict_table_t * dict_table_get_low(const char *table_name, const std::string *prev_table=nullptr)
Gets a table; loads it to the dictionary cache if necessary.
Definition: dict0priv.ic:38
static dict_table_t * dict_table_check_if_in_cache_low(const char *table_name)
Checks if a table is in the dictionary cache.
Data dictionary system private include file.
const char * table_name
Definition: rules_table_service.cc:56
Data structure for a database table.
Definition: dict0mem.h:1909
Version control for database, common definitions, and include files.