NAME

App::Manoc::DataDumper::Converter - Helper for reading datadumps from previous Manoc version

VERSION

version 2.99.3

ATTRIBUTES

log

A Manoc logger instance. Required.

schema

Manoc::DB schema. Required.

from_version

Original version of dump

to_version

Destination version

METHODS

get_table_name( $source_name )

Return the table to load corresponding to DB source $source_name.

get_additional_table_name( $source_name )

Return the table name (or a reference to a name list) to be used to refine data imported into DB source $source_name.

upgrade_table( \@data, $name )

Apply any needed transformation to records in @data for table $name.

process_additional_table( \@data, $source_name, $table_name )

Prepare @data coming from $table_name in order to be used to further refine already imported records in $source_name.

after_import_source( $source )

To be called after having imported all data for data source $source.

AUTHORS

  • Gabriele Mambrini <gmambro@cpan.org>

  • Enrico Liguori

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Gabriele Mambrini.

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