NAME

WE::DB::Base - base class for all database classes

SYNOPSIS

DESCRIPTION

METHODS

connect_if_necessary($sub)

Connect to the database, if there is not a database connection yet, and execute the supplied subroutine $sub. The return value of $sub will be returned by connect_if_necessary. Exceptions are also forwarded to the caller, but after the connection is closed, if needed.

disconnect

Disconnect the database. No further access on the database may be done.

delete_db

Delete the database completely, including the disk file.

AUTHOR

Slaven Rezic - slaven@rezic.de

SEE ALSO