Fun fact: MySQL has actually supposed CSV files as a storage backend for quite some time now[1]
1: https://dev.mysql.com/doc/refman/8.0/en/csv-storage-engine.h...
1: https://dev.mysql.com/doc/refman/8.0/en/csv-storage-engine.h...
This may looks like a dirty hack compared to a clean API, but if you have performance considerations or need to interface with some legacy thing that happens to understand CSV, this can be a good choice.