6 releases (3 breaking)
0.4.0 | Dec 29, 2021 |
---|---|
0.3.1 | Mar 17, 2021 |
0.2.0 | Feb 26, 2020 |
0.1.1 | Feb 25, 2020 |
#2664 in Database interfaces
10KB
136 lines
Install
cargo install sql2csv
Usage
Query with inline SQL
sql2csv \
--db "postgres://postgres@localhost/test" \
--out "export.csv" \
inline \
--sql "SELECT id, name FROM users" \
--header "id, name"
Query with SQL from TOML file
sql2csv \
--db "postgres://postgres@localhost/test" \
--out "export.csv" \
file \
--file test.toml
Dependencies
~10–21MB
~285K SLoC