Wiki::Toolkit::Store::Database is a parent class for database storage backends for Wiki::Toolkit.
SYNOPSIS
This is probably only useful for Wiki::Toolkit developers.
# See below for parameter details.
my $store = Wiki::Toolkit::Store::MySQL->new( %config );
METHODS
new
my $store = Wiki::Toolkit::Store::MySQL->new( dbname => "wiki",
dbuser => "wiki",
dbpass => "wiki",
dbhost => "db.example.com",
dbport => 1234,
charset => "iso-8859-1" );
or
my $store = Wiki::Toolkit::Store::MySQL->new( dbh => $dbh );
charset is optional, defaults to iso-8859-1, and does nothing unless you're using perl 5.8 or newer.
If you do not provide an active database handle in dbh, then dbname is mandatory. dbpass, dbuser, dbhost and dbport are optional, but you'll want to supply them unless your database's connection method doesn't require them.
If you do provide database then it must have the following parameters set; otherwise you should just provide the connection information and let us create our own handle:
RaiseError = 1
PrintError = 0
AutoCommit = 1
Product's homepage
Requirements:
· Perl