in reply to Debugging DBI placeholders

DBIx::Log4perl can log SQL only and even parameters and a lot more.

Replies are listed 'Best First'.
Re^2: Debugging DBI placeholders
by davies (Monsignor) on Feb 04, 2011 at 16:05 UTC

    This looks very interesting, but it doesn't seem to be in any of the PPM repositories I know about. Is it available for ActiveState Perl, and if so, where?

    Regards,

    John Davies

      I've no idea, I wrote it but do not decide what gets into ActiveState. It is a pure Perl module so should be easy to install even without a ppm.

        Your tests are too detailed for the automated Activestate build process. I had that problem too.

        http://ppm4.activestate.com/MSWin32-x86/5.12/1200/M/MJ/MJEVANS/DBIx-Log4perl-0.23.d/log-20101013T212740.txt

        I put the simple 'does this module load' test in the t/*.t file and then made a test.pl file that required user input. The PPM autobuild process skips that part so the tests are not run but a user running the tests could respond to the prompt and run the full test suite (if they choose).

        This workaround lets the modules get auto-built for Activestate PPMs (a proccess that happens automatically a few nights a week - at my best guesstimate).

        See an example test.pl (borrowed heavily from Net::Telnet::Cisco) at Cisco::Management for example.

      Look here. Apparently there was something broken with the DBI build and this broke modules depending on it. I'm reliably informed the DBIx::Log4perl module should appears in repositories very soon.

        Yes, it's available via PPM and I have now downloaded it. Play time! :-)

        Thanks & regards,

        John Davies