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