[Catalyst] do I need to load Apache::DBI?
Perrin Harkins
perrin at elem.com
Mon Jul 30 16:04:27 GMT 2007
On 7/24/07, Matt S Trout <dbix-class at trout.me.uk> wrote:
> Apache::DBI is an awful hack and should be avoided where possible.
Kind of an exaggeration. Apache::DBI is a useful module for porting
existing CGI scripts to mod_perl. If you aren't porting CGI scripts
to mod_perl, you can use other tools like DBI->connect_cached instead.
The main differences are that Apache::DBI disables disconnect(), to
allow for porting CGI code that disconnects after every request, and
Apache::DBI does a rollback at the end of every request to avoid
accidental commits of bad data when code dies during a request.
- Perrin
More information about the Catalyst
mailing list