csv-to-sql-insert icon indicating copy to clipboard operation
csv-to-sql-insert copied to clipboard

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.

Results 57 csv-to-sql-insert issues
Sort by recently updated
recently updated
newest added

# Description - added and configured vitest to write and run tests for existing code - also added a sample test file for `fileUtils.ts`

When sql file is deleted from sql directory, script errors out and creates wrong folder instead of generating a new sql file wilth the csv file name ![Screenshot 2023-12-24 at...

- Setting up a development environment for maintaining consistency in the codebase and for the upcoming PRs. - Following tools should be added/configured: - [x] .editorconfig - [x] .vscode -...

Final report replaces "Finished" with more detailed summary, including: - Summary report of total number of rows converted. - Total time in milliseconds to complete script Note: top-level `await` is...

### Description: Added a utility function catchAsync to handle asynchronous operations without redundant try-catch blocks. The function simplifies error handling for asynchronous functions returning promises. ### Functionality: The "catchAsync" function...

i solve the issue by creating the function which convert the proccess.argv array and convert these into map but there litter bit issue while i have to give extra --...

- While providing the .csv file names, we need to provide different .csv file names, comma-separated. ![image](https://github.com/gitdagray/csv-to-sql-insert/assets/130832377/0b6406bf-a02c-4e38-b064-88bfa7ab0210) - Then, all the files will be checked one by one, and if...

I would like to improve the documentation for the app