List:Internals« Previous MessageNext Message »
From:Paul McCullagh Date:May 10 2012 1:08pm
Subject:Re: pointers on implementing foreign keys for a storage engine
View as plain text  
With some modifications you could use the PBXT code that parses the query, it's quite
simple: https://launchpad.net/pbxt

See datadic_xt.cc:

XTParseTable::parseCreateTable()
XTParseTable::parseAlterTable()
XTParseTable::parseCreateIndex()
XTParseTable::parseDropIndex()

On May 9, 2012, at 12:30 PM, tomas ulin wrote:

> 
> There is no API for it.  InnoDB parses the query itself for the foreign key part.
> 
> BR,
> 
> Tomas
> 
> On 2012-05-08 17:23, Zardosht Kasheff wrote:
>> Hello all,
>> 
>> Are there any pointers for how one would go about implementing foreign
>> keys in the storage engine? I cannot seem to figure it out from the
>> handler API.
>> 
>> Thanks
>> -Zardosht
>> 
> 
> -- 
> MySQL Internals Mailing List
> For list archives: http://lists.mysql.com/internals
> To unsubscribe:    http://lists.mysql.com/internals
> 

Thread
pointers on implementing foreign keys for a storage engineZardosht Kasheff8 May
  • Re: pointers on implementing foreign keys for a storage enginetomas ulin9 May
    • Re: pointers on implementing foreign keys for a storage enginePaul McCullagh10 May
  • Re: pointers on implementing foreign keys for a storage engineStewart Smith10 May
  • Re: pointers on implementing foreign keys for a storage engineDmitry Lenev11 May