Skip to content

iamarshrx/csv-to-sql-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

CSV to SQL Converter

This tool converts CSV (Comma Separated Values) files into SQL (Structured Query Language) INSERT statements. It's useful for converting CSV data into SQL database import scripts.

Features

  • Converts CSV files into SQL INSERT statements
  • Handles empty values, generating appropriate NULL values in SQL
  • Supports generating GUIDs for empty UUID fields
  • Command-line interface for easy usage

How to Use

  1. Clone the Repository:

git clone https://github.com/iamarshrx/csv-to-sql-converter.git

  1. Navigate to the Project Directory:

cd csv-to-sql-converter

  1. Compile and Run the Program:

dotnet run

  1. Follow the Prompts:
  • Enter the path to the input CSV file.
  • Enter the path for the output SQL file.
  • Enter the table name for the SQL INSERT statements.
  1. Generated SQL File:
  • After providing the necessary inputs, the program will generate an SQL file containing the INSERT statements based on the provided CSV file.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to submit issues and pull requests to suggest improvements, report bugs, or add new features.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages