drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
dict_foreign_struct Struct Reference

#include <dict0mem.h>

Collaboration diagram for dict_foreign_struct:
[legend]

Public Attributes

mem_heap_t * heap
char * id
unsigned n_fields:10
unsigned type:6
char * foreign_table_name
char * foreign_table_name_lookup
dict_table_t * foreign_table
const char ** foreign_col_names
char * referenced_table_name
char * referenced_table_name_lookup
dict_table_t * referenced_table
const char ** referenced_col_names
dict_index_t * foreign_index
dict_index_t * referenced_index
 foreign_list
 referenced_list

Detailed Description

Data structure for a foreign key constraint; an example: FOREIGN KEY (A, B) REFERENCES TABLE2 (C, D). Most fields will be initialized to 0, NULL or FALSE in dict_mem_foreign_create().

Definition at line 414 of file dict0mem.h.

Member Data Documentation

◆ foreign_col_names

const char** dict_foreign_struct::foreign_col_names

names of the columns in the foreign key

Definition at line 431 of file dict0mem.h.

◆ foreign_index

dict_index_t* dict_foreign_struct::foreign_index

foreign index; we require that both tables contain explicitly defined indexes for the constraint: InnoDB does not generate new indexes implicitly

Definition at line 440 of file dict0mem.h.

◆ foreign_list

dict_foreign_struct::foreign_list

list node for foreign keys of the table

Definition at line 447 of file dict0mem.h.

◆ foreign_table

dict_table_t* dict_foreign_struct::foreign_table

table where the foreign key is

Definition at line 430 of file dict0mem.h.

◆ foreign_table_name

char* dict_foreign_struct::foreign_table_name

foreign table name

Definition at line 427 of file dict0mem.h.

◆ foreign_table_name_lookup

char* dict_foreign_struct::foreign_table_name_lookup

foreign table name used for dict lookup

Definition at line 428 of file dict0mem.h.

◆ heap

mem_heap_t* dict_foreign_struct::heap

this object is allocated from this memory heap

Definition at line 415 of file dict0mem.h.

◆ id

char* dict_foreign_struct::id

id of the constraint as a null-terminated string

Definition at line 417 of file dict0mem.h.

◆ n_fields

unsigned dict_foreign_struct::n_fields

number of indexes' first fields for which the the foreign key constraint is defined: we allow the indexes to contain more fields than mentioned in the constraint, as long as the first fields are as mentioned

Definition at line 419 of file dict0mem.h.

◆ referenced_col_names

const char** dict_foreign_struct::referenced_col_names

names of the referenced columns in the referenced table

Definition at line 438 of file dict0mem.h.

◆ referenced_index

dict_index_t* dict_foreign_struct::referenced_index

referenced index

Definition at line 445 of file dict0mem.h.

◆ referenced_list

dict_foreign_struct::referenced_list

list node for referenced keys of the table

Definition at line 450 of file dict0mem.h.

◆ referenced_table

dict_table_t* dict_foreign_struct::referenced_table

table where the referenced key is

Definition at line 436 of file dict0mem.h.

◆ referenced_table_name

char* dict_foreign_struct::referenced_table_name

referenced table name

Definition at line 433 of file dict0mem.h.

◆ referenced_table_name_lookup

char* dict_foreign_struct::referenced_table_name_lookup

referenced table name for dict lookup

Definition at line 434 of file dict0mem.h.

◆ type

unsigned dict_foreign_struct::type

0 or DICT_FOREIGN_ON_DELETE_CASCADE or DICT_FOREIGN_ON_DELETE_SET_NULL

Definition at line 425 of file dict0mem.h.


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