<<

NAME

convert_product_schema_dump - convert product records in a JSONL dump between schema versions

SYNOPSIS

  convert_product_schema_dump.pl [--to-version N] [--output FILE] [--verbose] <input.jsonl | ->

Reads a MongoDB product dump in JSONL format (one product per line), converts each product record to the target schema version using ProductOpener::ProductSchemaChanges::convert_product_schema, and writes the converted record as one JSON line to STDOUT (or to --output FILE).

The input file path is mandatory. Pass "-" to read from STDIN.

Errors are reported to STDERR and do not abort the run; offending records are skipped. At the end, a summary and the list of skipped product codes are printed to STDERR.

<<