Konstrukt::Plugin::guestbook::DBI - Konstrukt guestbook. Backend Driver for the Perl-DBI.
#TODO
Konstrukt guestbook DBI backend driver.
Note that you have to create the table guest
. You may turn on the install
setting (see "CONFIGURATION" in Konstrukt::Handler) or use the KonstruktBackendInitialization.pl
script to accomplish this task.
You have to define those settings to use this backend:
#backend guestbook/backend/DBI/source dbi:mysql:database:host guestbook/backend/DBI/user user guestbook/backend/DBI/pass pass
If no database settings are set the defaults from "CONFIGURATION" in Konstrukt::DBI will be used.
Initialization of this class
Installs the backend (e.g. create tables).
Parameters:
none
Returns the count of the entries in the guestbook.
Returns the requested entries in the database as an arrayreference of hashreferences:
[ {id => <value>, title => <value>, ...}, {id => <value>, title => <value>, ...}, ... ]
Parameters:
Returns one single entry specified by it's ID as an hashreference:
{id => <value>, title => <value>, ...}
Parameters:
Creates a guestbook entry.
Parameters:
Removes a guestbook entry
Parameters:
Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.
This document is free software. It is distributed under the same terms as Perl itself.