xDash::Archive::Pg 1.02 review
DownloadxDash::Archive::Pg is a base class for Archive. SYNOPSIS package Archive; use base xDash::Archive::Pg; # Set up your own d
|
|
xDash::Archive::Pg is a base class for Archive.
SYNOPSIS
package Archive;
use base xDash::Archive::Pg;
# Set up your own database access parameters
sub SetParameters { shift->SUPER::SetDatabaseConnection(
name => 'xdash', user => '', password => '' ) }
USAGE
The module is developed in the object orientated way. It can be used as the base class for archiving based on PostgreSQL as persistence. The base class has to implement a fixed set of methods, called by the derived class Archive. Archive is hardcoded in the xDash::Archivist (driver pattern).
For more details, how to set up all the needed components, see the introduction to the deployment: Planning and deploying xDash in a sandbox at http://xdash.jabberstudio.org/deployment/perl. By deriving from the class, as the way of passing arguments, you have to implement explicit methods listed below . The synopsis above is an example of the client script generated by the xdscr.
METHODS
SetDatabaseConnection( name => $database_name, user => $database_user, password => database_password )
Passes the self explanatory parameters to the DBI module, required by xDash::Archivist.
Requirements:
Perl
xDash::Archive::Pg 1.02 search tags