Re: DBI and DBD::mysql pseudohash results set?

Dan Bolser <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
On Sat, 18 Sep 2004, Dan Bolser wrote:

>On Sat, 18 Sep 2004, Jochen Wiedmann wrote:
>
>>Dan Bolser wrote:
>>
>>>I was thinking about loading the rows of a $sth results set into a
>>>pseudohash so that the columns could be accessed by either the column name
>>>or the column index.
>>>  
>>>
>>You are of course free to do so. But what is it good for? DBI already 
>>offers one or the other, on your choice, and I cannot remember a case 
>>where I need both at the same time. Besides, you always have the DBI 
>>metadata methods.
>
>
>You are right, it should never be strictly necessary. However, I am
>thinking about a convenience function such as 'doQuery' (exported by my
>MySQL::Simple perl module).
>
>In general (I think) it is convenient to only remember one function call
>'doQuery', and have a very flexible results set returned.
>
>In this way the user can hack together an sql report in a very short
>amount of time. 
>
>I will have to look into the metadata methods, as I am totally ignorant of
>this feature.

Doh! Not thinking that day. 


>
>Thanks for your help.
>
>Anybody know about the future stability of the pseudohash?
>
>Cheers,
>Dan.
>
>
>>
>>
>>Jochen
>>
>>
>>
>
>


-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.