| CPAN-SQLite documentation | view source | Contained in the CPAN-SQLite distribution. |
CPAN::SQLite::Util - export some common data structures used by CPAN::SQLite::*
This module exports some common data structures used by other CPAN::Search::Lite::* modules. At present these are
%chapsThis is hash whose keys are the CPAN chapter ids with associated values being the corresponding chapter descriptions.
$dslipThis contains a description of the meaning of the
various dslip codes.
$table_idThis is a hash reference whose keys are the tables used and whose values are the associated primary keys.
$full_idThis is a hash reference whose keys are the primary keys of the tables and whose values are the associated fully qualified primary keys (ie, with the table name prepended).
$mode_infoThis is a hash reference whose keys are the allowed
modes of CPAN::Search::Lite::Query and whose associated values
are hash references with keys id, name, and text describing
what columns to use for that key.
$query_infoThis is a hash reference whose purpose is to provide shortcuts to making queries using CPAN::Search::Lite::Query. The keys of this reference is the shortcut name, and the associated value is a hash reference specifying the required mode and type keys.
vcmpThis routine, used as
if (vcmp($v1, $v2) > 0) {
print "$v1 is higher than $v2\n";
}
is used to compare two versions, and returns 1/0/-1 if
the first argument is considered higher/equal/lower than
the second. It uses Sort::Versions.
| CPAN-SQLite documentation | view source | Contained in the CPAN-SQLite distribution. |