Set the DBI datasource that will be used to connect. 'dbi:' is automatically added, see the documentation of DBI for more information.
Set the username used to connect to the database.
Set the password used to connect to the database.
Check that plugin was correctly initialized. Try to connect to the database and create the table.
Create the needed table, if it doesn't exist. This requires the proper privileges to the database.
Load the element $element for $user from memory.
Store $content for $element and $user in memory.
DJabberd::Plugin::PrivateStorage::DBI - implement private storage, stored in DBI backend
<Plugin DJabberd::Plugin::PrivateStorage::DBI> Datasource DBI:mysql:database=djabberd;host=localhost Username test Password test </Plugin>
This plugin is derived from DJabberd::Plugin::PrivateStorage. It implement a backend for private storage in a DBI compliant database. A table name called private_storage will be created if it doesn't exist, with a simple schema. It was tested with sqlite, but it should be ok on most DBMS ( if the DBMS support TEXT ).
This module is Copyright (c) 2006 Michael Scherer All rights reserved.
You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
This is free software. IT COMES WITHOUT WARRANTY OF ANY KIND.
Michael Scherer <firstname.lastname@example.org>