The software offers an abstract class that enables mapping of a single row from the source database to the target database, with each object representing a row.
Here's how it works: first, retrieve a $source_object of the Class from the source database and assemble $mappings, which is a ref to an appropriate hash of Class::DBI::DataMigration::Mapping objects. Next, create a new instance of Class::DBI::DataMigration::Mapper, passing in the parameters for target_cdbi_class, mappings, and target_search_keys.
After creating an instance of the tool, it's time to map the $source_object to a $new_db_object in the target database. Use the map method on the mapper object and reference the $source_object as an argument – the result will be the $new_db_object in the new database.
Overall, Class::DBI::DataMigration::Mapper is a useful tool for mapping single rows, offering helpful functionality with its Mapping objects and target_search_keys.
Version 0.02: N/A