Slaven Rezić > WE_Framework-0.097_03 > WE::DB::Base

Download:
WE_Framework-0.097_03.tar.gz

Dependencies

Annotate this POD

Module Version: 1.06   Source  

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 ^

syntax highlighting: