gitdagray / csv-to-sql-insert

Provide table data as a CSV (comma-separated values) file and output a SQL insert statement for a table with the same name as the file.
MIT License
99 stars 120 forks source link

#5 ensure dir exists #13

Closed Ashish492 closed 9 months ago

Ashish492 commented 9 months ago

confirming the directory before accessing the file. Just create the helper function which check the file exist or not if not exist it create a new file for write the sql file. while reading a csv file it just log the file not found if that file not found

gitdagray commented 9 months ago

I like this approach. I recently added a prettier config so each PR will have the same formatting. Can you update with that change? Thanks!!

Ashish492 commented 9 months ago

"I've uploaded the code, formatted according to the provided configuration

gitdagray commented 9 months ago

Fixes https://github.com/gitdagray/csv-to-sql-insert/issues/5