NAME
Datahub::Factory::Importer::TMS - Import data from a TMS instance
SYNOPSIS
use Datahub::Factory;
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);
});
DESCRIPTION
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).
PARAMETERS
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.
ATTRIBUTES
importer
-
A Importer that can be used in your script.
AUTHOR
Pieter De Praetere <pieter at packed.be >
COPYRIGHT
Copyright 2017- PACKED vzw
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.