The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Object::Wrapper::Fork::DBI_stubs -- croak on call if DBI is not avaiable and the caller is used.

SYNOPSIS

    # DBI is not installed.

    package My;

    use parent qw( Object::Wrapper::Fork::DBI );

    # so far no harm, no foul: code that wants to 
    # test the Fork::DBI module can do so.
    #
    # calling connect, however, croaks since DBI
    # is not available.

    my $dbh = My->connect( $dsn, @blah );

DESCRIPTION

This avoids requiring a hard-wired dependency on DBI for users who do not need O::W::Fork::DBI.

Fork::DBI eval's its "use DBI" and carps if there is no DBI installed. Calls to "connect" croak in the Fork::DBI class.

This saves testing for DBI being installed on every single call to any of the Fork::DBI methods.

AUTHOR

Steven Lembark <lembark@wrkhors.com>

COPYRIGHT

Copyright (C) 2009 Steven Lembark. This module is released under the same terms as Perl-5.10.0 itself.