Datahub::Factory::Importer::TMS - Import data from a TMS instance
use Datahub::Factory::Importer::TMS; use Data::Dumper qw(Dumper); my $tms = Datahub::Factory::Importer::TMS->new( db_host => 'localhost', db_name => 'tms', db_user => 'tms', db_password => 'tms' ); $tms->importer->each(sub { my $item = shift; print Dumper($item); });
Datahub::Factory::Importer::TMS uses Catmandu to fetch a list of records from a local instance of TMSThe module requires that the TMS database is stored in a MySQL (or equivalent) system. It will not work with MS SQL (which TMS uses).
db_host
Host (IP or FQDN) of the MySQL database.
db_name
Name of the MySQL database.
db_user
Username to connect to the database.
db_password
Password for the user.
importer
A Importer that can be used in your script.
Pieter De Praetere <pieter at packed.be >
Copyright 2017- PACKED vzw
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Datahub::Factory Catmandu
To install Datahub::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Datahub::Factory
CPAN shell
perl -MCPAN -e shell install Datahub::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.