Apache-BabyConnect
view release on metacpan or search on metacpan
lib/Apache/BabyConnect.pm view on Meta::CPAN
a clarification of database descriptors.
If you create a DBI::BabyConnect object from a Perl script, then if the
descriptor is found in the DBI::BabyConnect cache, you will be using
the cached object. Otherwise, a new DBI::BabyConnect is created with that
descriptor, and it is added to the cache.
Any Perl script can use DBI::BabyConnect to create as many DBI::BabyConnect objects;
however, DBI::BabyConnect will only create a new object if not found in the cache.
Programmers do not need to keep track of what is being cached, and they
can write code as if the script is to be run from the command prompt.
It is recommended that you use a set of prefedined database descriptors
that you load at the startup of Apache. See B<babystartup.pl> script later
in this document. However, you can always use a new database descriptor
to create a DBI::BabyObject.
Unlike the Apache::DBI module, there is no request forwarding between
the DBI module and the Apache::BabyConnect. All caching is handled by the
DBI::BabyConnect. B<Do not load the Apache::DBI module> whenever you are using
Apache::BabyConnect, otherwise you will imply a penalty on the caching
( run in 1.710 second using v1.01-cache-2.11-cpan-6aa56a78535 )