[Catalyst] printing the generated SQL

Octavian Rasnita orasnita at gmail.com
Fri Sep 14 16:59:08 GMT 2007


Ok, thank you! It works.
I wondered if I could do that in a Catalyst application ran under mod_perl,=
 but I've seen that I can test it with myapp_server.pl and it is enough.

Octavian

  ----- Original Message ----- =

  From: John Goulah =

  To: The elegant MVC web framework =

  Sent: Friday, September 14, 2007 4:51 PM
  Subject: Re: [Catalyst] printing the generated SQL





  On 9/14/07, Octavian Rasnita <orasnita at gmail.com> wrote:
    From: "Paul Rudolf Seebacher" <paul.seebacher at gmx.net>


    > Octavian Rasnita wrote:
    >> Hi,
    >>
    >> Is it possible to log a certain SQL which is generated in a Catalyst =

    >> application by a controller that uses a DBIx::Class model?
    >>
    >> Thank you.
    >>
    >> Octavian
    >>
    >>
    >> _______________________________________________ =

    >> List: Catalyst at lists.rawmode.org
    >> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst =

    >> Searchable archive:
    >> http://www.mail-archive.com/catalyst@lists.rawmode.org/
    >> Dev site: http://dev.catalyst.perl.org/
    >>
    > This will print out geneerated SQL on debug screen:
    > $ export DBIC_TRACE=3D1
    >

    And where should I enter this command line?


  Do it in the same shell that you start your catalyst server =

   =





---------------------------------------------------------------------------=
---


  _______________________________________________
  List: Catalyst at lists.rawmode.org
  Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
  Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.or=
g/
  Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070914/7ed6c=
027/attachment-0001.htm


More information about the Catalyst mailing list