I have converter that converts CSV and writes it to database (always the same tables). There are many possible inputs and each input needs another configuration for CSV, as column name mappings, or restrictions on data. Of course some code parts are identical: as loop over all data rows or writing in database.
What is a good code pattern or design pattern(s) for such situation with many different possible inputs?
Aucun commentaire:
Enregistrer un commentaire