Kwiki::DB::DBI - A DBI.pm wrapper as a Kwiki base class.


Kwiki-DB documentation  | view source Contained in the Kwiki-DB distribution.

Index


NAME

Top

  Kwiki::DB::DBI - A DBI.pm wrapper as a Kwiki base class.

SYNOPSIS

Top

  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(...);
  }

DESCRIPTION

Top

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.

SEE ALSO

Top

DBI

COPYRIGHT

Top


Kwiki-DB documentation  | view source Contained in the Kwiki-DB distribution.