← Back to team overview

drizzle-discuss team mailing list archive

Re: how to add field column in storage engine?


Thanks for your tip, Stewart.
I am able to implement this functionality.
Though it seems kind of hack, but it works, it can read '/proc/meminfo'

On Wed, Jul 7, 2010 at 1:49 PM, Stewart Smith <stewart@xxxxxxxxxxxxxxxx>wrote:

> 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