perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
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

Gerald


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message