xDash::Archive::Pg 1.02 review

Download
by rbytes.net on

xDash::Archive::Pg is a base class for Archive. SYNOPSIS package Archive; use base xDash::Archive::Pg; # Set up your own d

License: Perl Artistic License
File size: 61K
Developer: Jerzy Wachowiak
0 stars award from rbytes.net

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