Biblio::Zotero::DB::Role::CopyDB - A role to copy the database to a temporary file.
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
It is likely to that you might have Zotero open while using 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
schema attribute of Biblio::Zotero::DB is built.
This must be a writable file or retrieving the
This can be cleared using the method
Zakariyya Mughal <email@example.com>
This software is copyright (c) 2013 by Zakariyya Mughal.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.