Kwiki::DB::DBI - A DBI.pm wrapper as a Kwiki base class.
package Kwiki::MyPlugin; use Kwiki::Plugin -Base; sub action { $self->hub->dbi->connect($dsn,$user,$password); $self->hub->dbi->do(...); $self->hub->dbi->$dbi_method(...); }
This class is for those pure DBI.pm lover. It does nothing but let DBI.pm do all the work. Plugin writers who want to use this module, just add this module into your plugins file, and there will be a convienent $hub-dbi> reference to an instantiated DBI object. After that, just follow the manual of DBI.pm to use the DBI object.
plugins
$hub-
DBI
Copyright 2005 by Kang-min Liu <gugod@gugod.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
To install Kwiki::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Kwiki::DB
CPAN shell
perl -MCPAN -e shell install Kwiki::DB
For more information on module installation, please visit the detailed CPAN module installation guide.