[Dbix-class] How to know what the SQL I have submitted to the database

Brandon Black blblack at gmail.com
Mon Dec 18 17:18:07 GMT 2006


On 12/18/06, Wan <wanmyome at gmail.com> wrote:
> For debug, I want to know the SQL I have submitted to the database, in
> search create update and other
>
> Thanks for any help!
>

Try setting the environment variable DBIC_TRACE, as documented here:

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

-- Brandon



More information about the Dbix-class mailing list