← Back to team overview

drizzle-discuss team mailing list archive

Re: how to add field column in storage engine?

 

On Tue, 6 Jul 2010 14:08:08 +0800, ZQ <ziminq@xxxxxxxxx> wrote:
> This requirement does seem a little odd.
> This scenario comes from my file system storage engine when I try to read
> files as /proc/meminfo,
> I would like it to be transposed, so that MemTotal, MemFree and other would
> become columns, then user can
> just use the statement as 'select MemTotal from t1'.
> Otherwise, there will be only two columns for this file.
> 
> What do you think, Stewart?

I think it's a useful feature.

you should be able to do this during gettabledefinition, just discover what
fields there are and populate the proto with them.

-- 
Stewart Smith



Follow ups

References