WTF::DBH - Database handle handling for WTF framework


VERSION

This document describes WTF::DBH version 1.01


SYNOPSIS

        use WTF::DBH;
        my $dbh = WTF::DBH->connect();


DESCRIPTION

This module handles the database handle for the WTF framework. Using Apache::DBI, it sets reconnection pings and calls for the connection to start during the Apache INIT phase. It sets the handle's parameters and returns a cached handle on request.


SUBROUTINE

There is single subroutine in this module.

connect()

This subroutine returns a cached database handle to the WTF database.

        my $dbh = WTF::DBH->connect();
        $dbh->do('DELETE FROM employee WHERE name LIKE "Hans%"') or die $dbh->errstr();


DEPENDENCIES

WTF::DBH depends on the following modules:


COPYRIGHT, LICENSE, AND DISCLAIMER OF WARRANTY

Use of this module implies the reading and agreement with the license under which this software is release. That license can be found in the ``license.txt'' file included with this distribution.