On Mon, 28 Mar 2011 23:34:03 -0400, Zardosht Kasheff <zardosht@stripped> wrote:
> Hello all,
>
> Is there a way for the storage engine to get some sort of byte stream
> that represents a serialized version of a TABLE or TABLE_SHARE object?
> The goal is to save it locally during handler::create and then check
> its contents (as a sanity check) with the TABLE_SHARE passed in during
> handler::open.
>
> Is this possible? And if it is, is there a way to take this serialized
> data and print what the table looks like in user readable form?
The closest you have for this in the MySQL code base is the code behind
SHOW CREATE TABLE.
--
Stewart Smith