Crates.io | psql_connect |
lib.rs | psql_connect |
version | 0.1.0 |
source | src |
created_at | 2018-06-14 20:02:51.836578 |
updated_at | 2018-06-14 20:02:51.836578 |
description | A CLI tool to help logging into Postgres easier |
homepage | https://github.com/notryanb/psql_connect |
repository | https://github.com/notryanb/psql_connect |
max_upload_size | |
id | 70150 |
size | 9,458 |
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.