NAME

Ceres::DBI::Index - DB interface to Ceres index

SYNOPSIS

use Ceres::DBI::Index;

my $db = Ceres::DBI::Index->new( '/database/file' );

METHODS

See Vulcan::SQLiteDB.

DATABASE

A SQLITE db has a <ceres> table of four columns:

host : hostname
time : collection time/flag
key : md5 key
md5 : current md5

METHODS

update( $host, $key, $md5 )

Update record if key or md5 changed.

index( $host, $md5 )

Select key by $host, and by failed md5 match if $md5 is defined. Return last two characters of key, or undef if $host does not exist.