Drizzled Public API Documentation

drizzled::Foreign_key Class Reference
Inheritance diagram for drizzled::Foreign_key:
drizzled::Key drizzled::memory::SqlAlloc

List of all members.

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 Keyclone (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_identref_table
List< Key_part_specref_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_speccolumns
LEX_STRING name
bool generated

Friends

bool foreign_key_prefix (Key *a, Key *b)

Detailed Description

Definition at line 49 of file foreign_key.h.


Constructor & Destructor Documentation

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 106 of file foreign_key.cc.

References drizzled::list_copy_and_replace_each_value().


Member Function Documentation

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

See also:
comment for Key_part_spec::clone

Definition at line 88 of file foreign_key.h.


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