NAME

xDash::Archive::Pg - 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 => '' ) }

DESCRIPTION

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.

BUGS

Any suggestions for improvement are welcomed!

If a bug is detected or nonconforming behavior, please send an error report to <jwach@cpan.org>.

COPYRIGHT

Copyright 2005 Jerzy Wachowiak <jwach@cpan.org>

This library is free software; you can redistribute it and/or modify it under the terms of the Apache 2.0 license attached to the module.

SEE ALSO

xDash::Archivist