MySQL  8.0.20
Source Code Documentation
dict.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 1996, 2018, Oracle and/or its affiliates. All Rights Reserved.
4 Copyright (c) 2012, Facebook Inc.
5 
6 This program is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License, version 2.0, as published by the
8 Free Software Foundation.
9 
10 This program is also distributed with certain software (including but not
11 limited to OpenSSL) that is licensed under separate terms, as designated in a
12 particular file or component or in included license documentation. The authors
13 of MySQL hereby grant you an additional permission to link the program and
14 your derivative works with the separately licensed software that they have
15 included with MySQL.
16 
17 This program is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20 for more details.
21 
22 You should have received a copy of the GNU General Public License along with
23 this program; if not, write to the Free Software Foundation, Inc.,
24 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 
26 *****************************************************************************/
27 
28 /** @file dict/dict.h
29  Data dictionary system
30 
31  Created 1/8/1996 Heikki Tuuri
32  *******************************************************/
33 
34 /** NOTE: The functions in this file should only use functions from
35 other files in library. The code in this file is used to make a library for
36 external tools. */
37 
38 #ifndef dict_dict_h
39 #define dict_dict_h
40 /** Adds a column to index.
41 @param[in,out] index index
42 @param[in] table table
43 @param[in] col column
44 @param[in] prefix_len column prefix length
45 @param[in] is_ascending true=ASC, false=DESC */
46 void dict_index_add_col(dict_index_t *index, const dict_table_t *table,
47  dict_col_t *col, ulint prefix_len, bool is_ascending);
48 
49 #endif
void dict_index_add_col(dict_index_t *index, const dict_table_t *table, dict_col_t *col, ulint prefix_len, bool is_ascending)
NOTE: The functions in this file should only use functions from other files in library.
Definition: dict.cc:49
Data structure for a database table.
Definition: dict0mem.h:1520
Data structure for a column in a table.
Definition: dict0mem.h:465
Data structure for an index.
Definition: dict0mem.h:879