Public Types | |
enum | Keytype { PRIMARY, UNIQUE, MULTIPLE, FOREIGN_KEY } |
Public Member Functions | |
Foreign_key (str_ref name_arg, List< Key_part_spec > &cols, Table_ident *table, List< Key_part_spec > &ref_cols, message::Table::ForeignKeyConstraint::ForeignKeyOption delete_opt_arg, message::Table::ForeignKeyConstraint::ForeignKeyOption update_opt_arg, message::Table::ForeignKeyConstraint::ForeignKeyMatchOption match_opt_arg) | |
Foreign_key (const Foreign_key &rhs, memory::Root *mem_root) | |
bool | validate (List< CreateField > &table_fields) |
Public Attributes | |
Table_ident * | ref_table |
List< Key_part_spec > | ref_columns |
message::Table::ForeignKeyConstraint::ForeignKeyOption | delete_opt |
message::Table::ForeignKeyConstraint::ForeignKeyOption | update_opt |
message::Table::ForeignKeyConstraint::ForeignKeyMatchOption | match_opt |
Keytype | type |
KEY_CREATE_INFO | key_create_info |
List< Key_part_spec > | columns |
str_ref | name |
bool | generated |
Definition at line 43 of file foreign_key.h.
drizzled::Foreign_key::Foreign_key | ( | const Foreign_key & | rhs, |
memory::Root * | mem_root | ||
) |
Constructs an (almost) deep copy of this foreign key. Only those elements that are known to never change are not copied. If out of memory, a partial copy is returned and an error is set in Session.
Definition at line 102 of file foreign_key.cc.
References drizzled::list_copy_and_replace_each_value().