psql_connect

Crates.iopsql_connect
lib.rspsql_connect
version0.1.0
sourcesrc
created_at2018-06-14 20:02:51.836578
updated_at2018-06-14 20:02:51.836578
descriptionA CLI tool to help logging into Postgres easier
homepagehttps://github.com/notryanb/psql_connect
repositoryhttps://github.com/notryanb/psql_connect
max_upload_size
id70150
size9,458
Ryan Blecher (notryanb)

documentation

README

psql_connect

Using psql to log into remote Postgres databases is tedious and I don't like typing out the shell command. Users can set up `.pgpass' file as suggested in the Postgres docs, however the connection strings can be very long and hard to enter.

This tool will list every connection string a user has configured in the .pgpass file and let you select which instance to connect to.

psql_connect currently relies on adding an alias to the .pgpass format.

hostname:port:database:username:password:alias

If no alias is present for the connection, psql_connect will display the hostname of that database. There is presently no way to connect to databases that don't have an alias. The roadmap includes adding in features to connect by number (as output by psqlconnect --list) and creating aliases via the cli tool.

Commit count: 25

cargo fmt