Data::Beacon::DBI - Stores a BEACON in a database
This class is a subclass of Data::Beacon. Each instance is connected to a specific Beacon collection as Data::Beacon::Collection::DBI.
The current version is just a draft.
...may return undef...
Get and/or set one or more meta fields. Returns a hash (no arguments), or string or undef (one argument), or croaks on invalid arguments.
Return all meta fields, serialized and sorted as string. This method is derived from Data::Beacon.
Returns the number of links in this Beacon, or zero.
Always returns zero.
Returns the last error message (if any). This method is derived from Data::Beacon.
Returns the current number of errors or zero.
Iterate over all links. You can pass a link handler, and/or an error handler.
link
error
Return the next link when iterating (as array reference), or undef.
Returns the last valid link, that has been read. Implemented in Data::Beacon.
TODO
Expand an link with PREFIX and TARGET, if given. Does not call meta but uses the cached meta values. Returns an array instead of an array reference!
meta
TODO: Should be moved to Data::Beacon.
The following methods are not implemented yet.
Add links.
Insert, replace or remove links.
Jakob Voss <jakob.voss@gbv.de>
<jakob.voss@gbv.de>
Copyright (C) 2010 by Verbundzentrale Goettingen (VZG) and Jakob Voss
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
In addition you may fork this library under the terms of the GNU Affero General Public License.
To install Data::Beacon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Beacon
CPAN shell
perl -MCPAN -e shell install Data::Beacon
For more information on module installation, please visit the detailed CPAN module installation guide.