[Dbix-class] Displaying SQL statements
Ash Berlin
ash_cpan at firemirror.com
Sat Jan 22 18:15:09 GMT 2011
On 22 Jan 2011, at 18:05, Peter Gordon wrote:
> I would like to be able to see the equivalent sql/bind values that are
> being sent to the database, just to ensure that everything is working
> properly and for debugging purposes.
>
> I can add my own log statements to _dbh_execute in
> DBIx/Class/Storage/DBI.pm, but I would like to know if there is a formal
> way of doing this.
>
> Thanks,
>
> Peter
See here: http://search.cpan.org/~abraxxa/DBIx-Class-0.08127/lib/DBIx/Class/Manual/Cookbook.pod#Profiling
-ash
More information about the DBIx-Class
mailing list