App-Chronicle
view release on metacpan or search on metacpan
bin/chronicle view on Meta::CPAN
529530531532533534535536537538539540541542543544545546547548database then insert it.
We also handle the case where the file on disk is newer than the database
version - in that case we remove the database version and update it to
contain the newer content.
=end doc
=cut
sub
updateDatabase
{
my
(
$dbh
) = (
@_
);
#
# Assume each entry is already present in the database.
#
my
$sql
=
$dbh
->prepare(
"SELECT id FROM blog WHERE ( file=? AND mtime=? )"
) or
die
"Failed to select post"
;
( run in 0.313 second using v1.01-cache-2.11-cpan-2b0bae70ee8 )