NAME

DB::Pluggable::Plugin - Base classes for DB::Pluggable plugins

SYNOPSIS

package DB::Pluggable::MyCommand;
use strict;
use warnings;
use base 'DB::Pluggable::Plugin';

sub register {
    my ($self, $context) = @_;
    $self->make_command(
        Th => sub {
            # ...
        }
    );
}

DESCRIPTION

This is a base class for plugins for DB::Pluggable. Plugins should inherit from it, so if we later add some basic functionality to this class, we don't have to rewrite the plugins.

METHODS

make_command

Takes a command name string and a code reference and makes a new debugger command. It abuses the debugger's alias mechanism to do so.

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org.

INSTALLATION

See perlmodinstall for information and options on installing Perl modules.

AVAILABILITY

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see http://search.cpan.org/dist/DB-Pluggable/.

The development version lives at http://github.com/hanekomu/db-pluggable/. Instead of sending patches, please fork this project using the standard git and github infrastructure.

AUTHORS

Marcel Grünauer, <marcel@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2008-2009 by Marcel Grünauer.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.