csv-to-sql-insert
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.
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.
Usage ⚙
- Confirm you have a directory named
csv - Confirm you have a directory named
sql - Save your input CSV file in the
csvdirectory - In a terminal window, first run
npm installto install dependencies and then runnpm start YourFileName - Watch the terminal window for any error messages
- Your SQL insert statement will be saved in
sql/YourFileName.sql
Support 👨💻
Contributing 🛠
Please read CONTRIBUTING.md prior to contributing.
Code of Conduct
Please see CODE_OF_CONDUCT.md.