![]() |
MySQL 8.0.43
Source Code Documentation
|
#include "sql/sql_help.h"#include <string.h>#include <sys/types.h>#include <algorithm>#include <atomic>#include <memory>#include <string>#include <utility>#include "m_ctype.h"#include "mem_root_deque.h"#include "my_alloc.h"#include "my_base.h"#include "my_bitmap.h"#include "my_dbug.h"#include "my_inttypes.h"#include "my_sys.h"#include "mysqld_error.h"#include "sql/debug_sync.h"#include "sql/field.h"#include "sql/handler.h"#include "sql/item.h"#include "sql/item_cmpfunc.h"#include "sql/iterators/basic_row_iterators.h"#include "sql/iterators/composite_iterators.h"#include "sql/iterators/row_iterator.h"#include "sql/iterators/timing_iterator.h"#include "sql/protocol.h"#include "sql/sql_base.h"#include "sql/sql_bitmap.h"#include "sql/sql_class.h"#include "sql/sql_lex.h"#include "sql/sql_list.h"#include "sql/sql_table.h"#include "sql/table.h"#include "sql_string.h"#include "template_utils.h"#include "thr_lock.h"#include "typelib.h"Classes | |
| struct | st_find_field |
Functions | |
| static bool | init_fields (THD *thd, Table_ref *tables, struct st_find_field *find_fields, uint count) |
| static void | memorize_variant_topic (THD *thd, int count, struct st_find_field *find_fields, List< String > *names, String *name, String *description, String *example) |
| static int | search_topics (THD *thd, RowIterator *iterator, struct st_find_field *find_fields, List< String > *names, String *name, String *description, String *example) |
| static int | search_keyword (RowIterator *iterator, struct st_find_field *find_fields, int *key_id) |
| static int | get_topics_for_keyword (THD *thd, TABLE *topics, TABLE *relations, struct st_find_field *find_fields, int16 key_id, List< String > *names, String *name, String *description, String *example) |
| static int | search_categories (THD *thd, RowIterator *iterator, struct st_find_field *find_fields, List< String > *names, int16 *res_id) |
| Look for categories by mask. More... | |
| static void | get_all_items_for_category (THD *thd, RowIterator *iterator, Field *pfname, List< String > *res) |
| static int | send_answer_1 (THD *thd, String *s1, String *s2, String *s3) |
| static int | send_header_2 (THD *thd, bool for_category) |
| static int | send_variant_2_list (MEM_ROOT *mem_root, Protocol *protocol, List< String > *names, const char *cat, String *source_name) |
| static unique_ptr_destroy_only< RowIterator > | prepare_simple_query_block (THD *thd, Item *cond, TABLE *table) |
| Prepare access method to do "SELECT * FROM table WHERE <cond>". More... | |
| static unique_ptr_destroy_only< RowIterator > | prepare_select_for_name (THD *thd, const char *mask, size_t mlen, TABLE *table, Field *pfname) |
| Prepare access method to do "SELECT * FROM table LIKE mask". More... | |
| bool | mysqld_help (THD *thd, const char *mask) |
Variables | |
| static struct st_find_field | init_used_fields [] |
| enum enum_used_fields |
|
static |
|
static |
|
static |
|
static |
| bool mysqld_help | ( | THD * | thd, |
| const char * | mask | ||
| ) |
|
static |
Prepare access method to do "SELECT * FROM table LIKE mask".
| thd | Thread handler |
| mask | mask for compare with name |
| mlen | length of mask |
| table | goal table |
| pfname | field "name" in table |
|
static |
Prepare access method to do "SELECT * FROM table WHERE <cond>".
| thd | Thread handler |
| cond | WHERE part of select |
| table | goal table |
|
static |
Look for categories by mask.
| thd | THD for init_table_iterator |
| iterator | Iterator giving categories. |
| find_fields | Filled array of info for fields |
| names | List of found categories names (out) |
| res_id | Primary index of found category (only if found exactly one category) |
|
static |
|
static |
|
static |
|
static |
|
static |