perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <>
Subject RE: DBIx::Recordset 'do' syntax?
Date Mon, 11 Oct 2004 13:07:40 GMT
> Having trouble using DBIx::Recordset->do.  I'd like to use 
> the do command to issue 'show master logs' on a MySQL 
> database.  Unfortunately, I can't find a way to actually get 
> the data ouput back.  It doesn't seem to return the data back 
> like a regular $set -> Search would.  I'm confused on how to 
> use $set w/out actually specifiying a table to use.
> Could anyone write a simple example of how to use $set->do in 
> such a way that you actually get rows of data back?

Do will never return any data, but you should be able to use Search e.g. 

DBIx::Recordset->Search({'!DataSource' => $db, '!Query' => 'show master
logs'}) ;

I didn't have tried it, but it should work


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message