in reply to Genius or Insanity: My minimal DBI

For the name, I think Tie::DBIQuery or DBIx::TieQuery would work. You are dealing with the results from a query here, not a whole table like Tie::DBI.

I don't know how to say this nicely: I hate the interface. It looks like you are doing something insane to a string. I think a much more natural interface would be to tie an array and make the SQL query one of the args to tie().

Replies are listed 'Best First'.
Re: Re: Genius or Insanity: My minimal DBI
by Kageneko (Scribe) on Jan 13, 2004 at 04:42 UTC
    No need to be nice. This is what I was expecting, actually. :) The interface was more of a thought experiment than anything. I think both a tied array and a tied filehandle would make for a much, much nicer interface. Plus, I can't quite get this one to work with anything but SELECTs :(