Crates.io | sql2csv |
lib.rs | sql2csv |
version | 0.4.0 |
source | src |
created_at | 2020-02-25 15:41:39.369755 |
updated_at | 2021-12-29 03:59:28.586478 |
description | Export SQL query to csv file |
homepage | |
repository | https://github.com/nottxy/sql2csv |
max_upload_size | |
id | 212438 |
size | 30,081 |
cargo install sql2csv
sql2csv \
--db "postgres://postgres@localhost/test" \
--out "export.csv" \
inline \
--sql "SELECT id, name FROM users" \
--header "id, name"
sql2csv \
--db "postgres://postgres@localhost/test" \
--out "export.csv" \
file \
--file test.toml