NAME

Apache::DBI - persistent database connection via DBI

SYNOPSIS

use Apache::DBI;

$dbh = Apache::DBI->connect(...);

DESCRIPTION

This module provides a persistent database connection via DBI. For supported DBI drivers see:

http://www.hermetica.com/technologia/DBI/

All you really need is to replace DBI with Apache::DBI. When connecting to a database the module looks if a database handle from a previous connect request is already stored. If not, a new connection is established and the handle is stored for later re-use. The destroy method has been intentionally left empty.

SEE ALSO

Apache(3), DBI(3)

AUTHORS

DBI by Tim Bunce <Tim.Bunce@ig.co.uk>
mod_perl by Doug MacEachern <dougm@osf.org>
Apache::DBI by Edmund Mergl <E.Mergl@bawue.de>