NAME
ResourcePool::Resource::DBI - A ResourcePool wrapper for DBI
SYNOPSIS
use ResourcePool::Resource::DBI;
my $resource = ResourcePool::Resource::DBI->new(
$data_source,
$username,
$auth,
\%attr);
DESCRIPTION
This class is used by the ResourcePool internally to create DBI connections. Its called by the corresponding ResourcePool::Factory::DBI object which passes the parameters needed to establish the DBI connection.
The only thing which has to been known by an application developer about this class is the implementation of the precheck() and postcheck() methods:
- precheck()
-
Performs a $dbh->ping().
Returns true on success and false on fail.
- postcheck()
-
Always returns true, but does a rollback() on the session (if AutoCommit is off).
SEE ALSO
ResourcePool(3pm), ResourcePool::Resource(3pm)
AUTHOR
Copyright (C) 2002 by Markus Winand <mws@fatalmind.com>
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 111:
You forgot a '=back' before '=head1'