Public Types | |
enum | Keytype { PRIMARY, UNIQUE, MULTIPLE, FOREIGN_KEY } |
Public Member Functions | |
Foreign_key (const LEX_STRING &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) | |
virtual Key * | clone (memory::Root *mem_root) const |
bool | validate (List< CreateField > &table_fields) |
Static Public Member Functions | |
static void * | operator new (size_t size) |
static void * | operator new (size_t size, Root *mem_root) |
static void * | operator new[] (size_t size) |
static void * | operator new[] (size_t size, Root *mem_root) |
static void | operator delete (void *, size_t) |
static void | operator delete (void *, Root *) |
static void | operator delete[] (void *, Root *) |
static void | operator delete[] (void *, size_t) |
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 |
LEX_STRING | name |
bool | generated |
Friends | |
bool | foreign_key_prefix (Key *a, Key *b) |
Definition at line 49 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 107 of file foreign_key.cc.
References drizzled::list_copy_and_replace_each_value().
virtual Key* drizzled::Foreign_key::clone | ( | memory::Root * | mem_root | ) | const [inline, virtual] |
Used to make a clone of this object for ALTER/CREATE TABLE
Definition at line 88 of file foreign_key.h.