Skip to content

htmfilho/csvsource

Repository files navigation

CSVSource

CSVSource is a command line tool written in Rust to convert a CSV file to SQL statements. It has special features like grouping insert statements in transaction chunks and inserting multiple rows with a single insert statement.

Usage

learn how to use CSVSource with the --help argument:

$ ./csvsource --help

The simplest approach is to pass the argument --source or -f followed by a csv file:

$ ./csvsource --source data.csv

It generates the data.sql file containing the SQL statements. For more options, read the documentation.

For Developers