MySQL 9.4.0
Source Code Documentation
ddl.h
Go to the documentation of this file.
1#pragma once
2
3/* Copyright (c) 2024, 2025, 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/sql_lex.h"
27
28namespace jdv {
29/**
30 * @brief Check if duality view prepared is required.
31 *
32 * @param thd Thread handle.
33 * @param table_ref Table_ref* object for given JSON duality view.
34 *
35 * @return true If JDV prepare should be performed.
36 * @return false Otherwise.
37 */
38bool is_prepare_required(THD *thd, Table_ref *table_ref);
39
40/**
41 Performs Syntax validation, parepares metadata tree and performs Semantic
42 validation of a given JSON DUALITY VIEW.
43
44 @param [in] thd Current THD object
45 @param [in, out] table_ref Table_ref* object for given JSON DUALITY VIEW
46
47 @retval false in case of success, true in case of failure
48*/
49bool prepare(THD *thd, Table_ref *table_ref);
50} // namespace jdv
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Definition: table.h:2931
Definition: content_tree.cc:39
bool prepare(THD *thd, Table_ref *view)
Performs Syntax validation, parepares metadata tree and performs Semantic validation of a given JSON ...
Definition: ddl.cc:631
bool is_prepare_required(THD *thd, Table_ref *view)
Check if duality view prepared is required.
Definition: ddl.cc:611