Crates.io | csvsource |
lib.rs | csvsource |
version | 0.7.0 |
source | src |
created_at | 2022-10-09 02:17:04.154827 |
updated_at | 2023-05-03 12:29:03.913713 |
description | Converts a CSV file to SQL Insert Statements. |
homepage | |
repository | |
max_upload_size | |
id | 683827 |
size | 37,498,329 |
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.
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.