MySQL 8.0.40
Source Code Documentation
Key_spec Class Reference

#include <key_spec.h>

Inheritance diagram for Key_spec:
[legend]

Public Member Functions

 Key_spec (MEM_ROOT *mem_root, keytype type_par, const LEX_CSTRING &name_arg, const KEY_CREATE_INFO *key_info_arg, bool generated_arg, bool check_for_duplicate_indexes_arg, List< Key_part_spec > &cols)
 
virtual ~Key_spec ()=default
 

Public Attributes

const keytype type
 
const KEY_CREATE_INFO key_create_info
 
Mem_root_array< Key_part_spec * > columns
 
LEX_CSTRING name
 
const bool generated
 
const bool check_for_duplicate_indexes
 A flag to determine if we will check for duplicate indexes. More...
 

Constructor & Destructor Documentation

◆ Key_spec()

Key_spec::Key_spec ( MEM_ROOT mem_root,
keytype  type_par,
const LEX_CSTRING name_arg,
const KEY_CREATE_INFO key_info_arg,
bool  generated_arg,
bool  check_for_duplicate_indexes_arg,
List< Key_part_spec > &  cols 
)
inline

◆ ~Key_spec()

virtual Key_spec::~Key_spec ( )
virtualdefault

Member Data Documentation

◆ check_for_duplicate_indexes

const bool Key_spec::check_for_duplicate_indexes

A flag to determine if we will check for duplicate indexes.

This typically means that the key information was specified directly by the user (set by the parser) or a column associated with it was dropped.

◆ columns

Mem_root_array<Key_part_spec *> Key_spec::columns

◆ generated

const bool Key_spec::generated

◆ key_create_info

const KEY_CREATE_INFO Key_spec::key_create_info

◆ name

LEX_CSTRING Key_spec::name

◆ type

const keytype Key_spec::type

The documentation for this class was generated from the following file: