The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache::Wyrd::Site::MySQLIndex - Wrapper MySQLIndex for the Site classes

SYNOPSIS

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;
  }

DESCRIPTION

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.

BUGS/CAVEATS

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.

AUTHOR

Barry King <wyrd@nospam.wyrdwright.com>

SEE ALSO

Apache::Wyrd

General-purpose HTML-embeddable perl object

Apache::Wyrd::Services::Index

General-purpose search engine index object

LICENSE

Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.

See LICENSE under the documentation for Apache::Wyrd.