Apache::Wyrd::Site::MySQLIndex - Wrapper MySQLIndex for the Site classes
Sample Implementation:
use base qw(Apache::Wyrd::Site::MySQLIndex); my $dbh = _get_database_handle(); sub new { my ($class) = @_; my $init = { dbh => $dbh, debug => 0, attributes => [qw(doctype meta)], maps => [qw(meta)] }; return &Apache::Wyrd::Site::Index::new($class, $init); } sub ua { return BASENAME::UA->new; } sub skip_file { my ($self, $file) = @_; return 1 if ($file eq 'test.html'); return; }
This class extends the Apach::Wyrd::Site::Index class, so check the documentation of that module for any methods. It provides an index of Apache::Wyrd::Site::Page objects (see that module for details) using the mysql backend instead of BerkeleyDB.
Reserves the new method, which it passes unaltered to Apache::Wyrd::Services::MySQLIndex. index_site, skip_file, and purge_missing are obsolete and may be dropped in future versions. See Apache::Wyrd::Services::Index for other bugs/warnings.
Barry King <wyrd@nospam.wyrdwright.com>
General-purpose HTML-embeddable perl object
General-purpose search engine index object
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd.
Apache::Wyrd
To install Apache::Wyrd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Wyrd
CPAN shell
perl -MCPAN -e shell install Apache::Wyrd
For more information on module installation, please visit the detailed CPAN module installation guide.