Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual Dictionary::createForeignKey()

Description.  Creates a ForeignKey object, given a reference to this object and an Object ID.


int createForeignKey
      const ForeignKey&,
      ObjectId* = 0,
      int flags = 0

Parameters.  A reference to the ForeignKey object, and an Object ID. An optional value flags, if used, allows the creation of the foreign key without performing any foreign key checks. If set, its value must be CreateFK_NoVerify (1).

Return value.  0 on success.