File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # sql2csv
1+ # sql2csv-cmd
22
33[ ![ GoDoc] ( https://godoc.org/github.com/frederikhs/sql2csv-cmd?status.svg )] ( https://godoc.org/github.com/frederikhs/sql2csv-cmd )
44[ ![ Quality] ( https://goreportcard.com/badge/github.com/frederikhs/sql2csv-cmd )] ( https://goreportcard.com/report/github.com/frederikhs/sql2csv-cmd )
@@ -36,3 +36,29 @@ sql2csv-cmd -d db.example.com -q "SELECT * FROM public.users" -o users.csv
3636``` shell
3737sql2csv-cmd -d db.example.com -f query.sql -o query.csv
3838```
39+
40+ ## Installation
41+
42+ ### Linux amd64
43+
44+ ``` bash
45+ # install
46+ curl -L https://github.com/frederikhs/sql2csv-cmd/releases/latest/download/sql2csv-cmd_Linux_x86_64.tar.gz -o sql2csv-cmd.tar.gz
47+ tar -xvf sql2csv-cmd.tar.gz
48+ sudo mv sql2csv-cmd /usr/local/bin/sql2csv-cmd
49+
50+ # clean up
51+ rm sql2csv-cmd.tar.gz
52+ ```
53+
54+ ## .pgpass
55+
56+ sql2csv-cmd uses the ` .pgpass ` file that resides in the ` $HOME ` directory of the user running the program.
57+
58+ ---
59+
60+ Example of a connection configuration in the ` .pgpass ` file
61+
62+ ```
63+ <HOST>:<PORT>:<DATABASE>:<USERNAME>:<PASSWORD>
64+ ```
You can’t perform that action at this time.
0 commit comments