Exceptions handling + CSV Iterators
Exception Handling
The extract, transform, or load part of the ETL process may sometimes throw exceptions.
Before throwing it, we should be able to hook on the exception, handle it, and decide wether or not to continue the process.
CSV Iterators
You can now use CsvFileIterator
or CsvStringIterator
to iterate over your CSVs.
Also check KeysAwareCsvIterator
to automatically assign the keys of each CSV row (you can turn an indexed array into an associative one). Check out the Iterators documentation.