Biblio-Zotero-DB
view release on metacpan or search on metacpan
lib/Biblio/Zotero/DB/Role/CopyDB.pm view on Meta::CPAN
use Biblio::Zotero::DB;
use Moo::Role;
$db = Biblio::Zotero::DB->new();
Moo::Role->apply_roles_to_object($db, 'Biblio::Zotero::DB::Role::CopyDB');
$db->schema; # this will use a copy of the database file
=head1 DESCRIPTION
It is likely to that you might have Zotero open while using
L<Biblio::Zotero::DB>. This causes problems as the database file will be locked
as long as Zotero is running. To get around that, applying this role will
create a copy whenever the C<L<schema|Biblio::Zotero::DB/schema>> attribute of L<Biblio::Zotero::DB> is
built.
=head1 ATTRIBUTES
=head2 db_file_temp
A string that is used to determine where to store the copy of the
L<database file|Biblio::Zotero::DB/db_file>. By default, this is built as a
( run in 1.270 second using v1.01-cache-2.11-cpan-49f99fa48dc )