[Dbix-class] Displaying SQL statements

Pedro Melo melo at simplicidade.org
Sat Jan 22 18:21:58 GMT 2011


Hi,

On Sat, Jan 22, 2011 at 6:15 PM, Ash Berlin <ash_cpan at firemirror.com> wrote:
> 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.
>
> See here: http://search.cpan.org/~abraxxa/DBIx-Class-0.08127/lib/DBIx/Class/Manual/Cookbook.pod#Profiling

I think this would be enough though:

http://search.cpan.org/dist/DBIx-Class/lib/DBIx/Class/Storage.pm#ENVIRONMENT_VARIABLES

Bye,
-- 
Pedro Melo
http://www.simplicidade.org/
xmpp:melo at simplicidade.org
mailto:melo at simplicidade.org



More information about the DBIx-Class mailing list