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