NAME
Data::TagDB::Exporter - Work with Tag databases
VERSION
version v0.06
SYNOPSIS
use Data::TagDB;
my Data::TagDB $db = Data::TagDB->new(...);
my Data::TagDB::Exporter $exporter = $db->exporter(...);
$exporter->tag($tag);
$exporter->metadata($metadata);
$exporter->relation($relation);
Generic exporter for database entries.
See also "exporter" in Data::TagDB.
METHODS
db
my Data::TagDB $db = $factory->db;
Returns the current Data::TagDB object.
tag
$exporter->tag($tag [, %opts ] );
Exports a single tag.
$tag
must be a Data::TagDB::Tag.
The following options (all optional) are supported:
skip_metadata
-
If set true do not export metadata associated with this tag. If the selected format does not support metadata this option is silently ignored.
skip_relation
-
If set true do not export relations associated with this tag. If the selected format does not support metadata this option is silently ignored.
metadata
$exporter->metadata($metadata);
Exports the given metadata. It needs to be an instance of Data::TagDB::Metadata. If the selected format does not support metadata this method die
s.
relation
$exporter->relation($relation);
Exports the given relation. It needs to be an instance of Data::TagDB::Relation. If the selected format does not support relations this method die
s.
AUTHOR
Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2024 by Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)