in reply to Re: DBI vs Apache::DBI
in thread DBI vs Apache::DBI

Yes, it's running under mod-perl. Should I change it to DBI or DBIx::Connector as the original responder suggested?

Replies are listed 'Best First'.
Re^3: DBI vs Apache::DBI
by jcb (Parson) on Aug 23, 2019 at 23:37 UTC

    As I understand, Apache:DBI is supposed to be loaded in the mod_perl configuration, not in the script. If Apache::DBI is loaded, use DBI; actually gives you Apache::DBI and its extra feature of connection caching. In all cases, the script should "use DBI;".

    If you want to use DBIx::Connector, you will need to read the documentation and possibly change more than just a use line in your script. I have not used it and I do not know about it.