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
97 stars 122 forks source link

improvement for readCSV file and code refactoring #53

Open Virous77 opened 10 months ago

Virous77 commented 10 months ago
  1. Used fs/promises for promise-based file operations.
  2. Improved the construction of the beginSQLInsert statement.
  3. Extracted the validation logic into a separate function (validateRow).
  4. Refactored file existence check into a separate function.
  5. Added .nvmrc file
servesh-chaturvedi commented 10 months ago

Hey could you modify your vscode settings so that no unnecessary settings like single quotes to double or tab spaces appear? That ways, it is helpful to check exact changes🙂

Virous77 commented 10 months ago

Hey could you modify your vscode settings so that no unnecessary settings like single quotes to double or tab spaces appear? That ways, it is helpful to check exact changes🙂

sure will look into that:)