NAME

App::CriticDB::DB::Stor - Storable database for App::CriticDB

VERSION

Version 0.0.6

SYNOPSIS

my $db=App::CriticDB::DB->new(mode=>'file',file=>'path.stor',type=>'storable');
$db->store($filename,@violations);
$db->write();

DESCRIPTION

Provides reading and writing of Storable databases of Perl::Critic violations for App::CriticDB. File locking prevents other processes from reading during writes. Timestamps are checked to ensure other processes haven't updated the datafile; note that most systems only provide one-second resolution, but overwrites will be corrected with subsequent runs. Complete file loss during crashing is guarded by writing to a temporary file and moving it into place.

AUTHORS

Brian Blackmore (brian@mediaalpha.com).

COPYRIGHT

Copyright (c) 2025--2035, MediaAlpha.com.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License Version 3 as published by the Free Software Foundation.