| CPAN-Search-Lite documentation | view source | Contained in the CPAN-Search-Lite distribution. |
CPAN::Search::Lite::State - get state information on the database
This module gets information on the current state of the database and compares it to that obtained from the CPAN index files from CPAN::Search::Lite::Info and from the repositories from CPAN::Search::Lite::PPM. For each of the four tables dists, mods, auths, and ppms, two methods are used to get this information:
idsThis method gets the ids of the relevant names, and versions, if applicable, in the table.
stateThis method compares the information in the tables
obtained from the ids method to that from the
CPAN indices and ppm repositories. One of three actions
is then decided, which is subsequently acted upon in
CPAN::Search::Lite::Populate.
insertIf the information in the indices is not in the database, this information is marked for insertion.
updateIf the information in the database is older than that form the indices (generally, this means an older version), the information is marked for updating.
deleteIf the information in the database is no longer present in the indices, the information is marked for deletion.
| CPAN-Search-Lite documentation | view source | Contained in the CPAN-Search-Lite distribution. |