The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Datahub::Factory::Importer::YAML - Import data from YAML data dumps

SYNOPSIS

    use Datahub::Factory;
    use Data::Dumper qw(Dumper);

    my $yaml = Datahub::Factory->importer('YAML')->new(
        file_name => '/tmp/export.yaml',
    );

    $yaml->importer->each(sub {
        my $item = shift;
        print Dumper($item);
    });

DESCRIPTION

Datahub::Factory::Importer::YAML uses Catmandu to fetch a list of records from an YAML data dump. It returns an Importer.

PARAMETERS

file_name

Location of the YAML data dump.

ATTRIBUTES

importer

A Importer that can be used in your script.

AUTHOR

Tine Robbe <tine dot robbe at vlaamsekunstcollectie.be >

COPYRIGHT

Copyright 2017- Vlaamsekunscollectie vzw, PACKED vzw

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Datahub::Factory Catmandu