2 unstable releases
0.7.0 | May 3, 2023 |
---|---|
0.6.0 | Oct 9, 2022 |
#35 in #insert
7.5MB
353 lines
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 --csv
or -f
followed by a csv file:
$ ./csvsource --csv data.csv
It generates the data.sql
file containing the SQL statements. For more
options, read the documentation.
For Developers
Dependencies
~4.5MB
~74K SLoC