I want a script that detect a new xxx.csv, load the data, and write the data in postgresql.
I’m not sure if the DrvCsvReader driver is capable of detecting new csv files. In addition, it requires a specific csv file structure.
If you do not know the name of the csv file, you will have to create a script in the system itself, for example, on bash on Linux and call it via crontab. Well, or through the Windows scheduler.
Rewrite or add information to a csv file that DrvCsvReader will understand and write the data to channels that will already be sent to the database using ModDbExport.
You need to understand the architecture of your csv files, how different they are in terms of the dataset, etc.