Skip to content

nottxy/sql2csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages